@@ -19,8 +19,8 @@ function typeName(value) {
1919 } , common . expectsError ( {
2020 code : 'ERR_INVALID_ARG_TYPE' ,
2121 type : TypeError ,
22- message : 'The "options" argument must be of type object. Received type ' +
23- typeName ( options )
22+ message : 'The "options" argument must be of type object. ' +
23+ `Received type ${ typeName ( options ) } `
2424 } ) ) ;
2525 } ) ;
2626}
@@ -35,8 +35,8 @@ function typeName(value) {
3535 } , common . expectsError ( {
3636 code : 'ERR_INVALID_ARG_TYPE' ,
3737 type : TypeError ,
38- message : 'The "options.file" property must be of type string. Received ' +
39- ' type ' + typeName ( file )
38+ message : 'The "options.file" property must be of type string. ' +
39+ `Received type ${ typeName ( file ) } `
4040 } ) ) ;
4141 } ) ;
4242}
@@ -52,7 +52,7 @@ function typeName(value) {
5252 code : 'ERR_INVALID_ARG_TYPE' ,
5353 type : TypeError ,
5454 message : 'The "options.envPairs" property must be of type array. ' +
55- ' Received type ' + typeName ( envPairs )
55+ ` Received type ${ typeName ( envPairs ) } `
5656 } ) ) ;
5757 } ) ;
5858}
@@ -67,8 +67,8 @@ function typeName(value) {
6767 } , common . expectsError ( {
6868 code : 'ERR_INVALID_ARG_TYPE' ,
6969 type : TypeError ,
70- message : 'The "options.args" property must be of type array. Received ' +
71- ' type ' + typeName ( args )
70+ message : 'The "options.args" property must be of type array. ' +
71+ `Received type ${ typeName ( args ) } `
7272 } ) ) ;
7373 } ) ;
7474}
0 commit comments