@@ -19,8 +19,8 @@ function typeName(value) {
19
19
} , common . expectsError ( {
20
20
code : 'ERR_INVALID_ARG_TYPE' ,
21
21
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 ) } `
24
24
} ) ) ;
25
25
} ) ;
26
26
}
@@ -35,8 +35,8 @@ function typeName(value) {
35
35
} , common . expectsError ( {
36
36
code : 'ERR_INVALID_ARG_TYPE' ,
37
37
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 ) } `
40
40
} ) ) ;
41
41
} ) ;
42
42
}
@@ -52,7 +52,7 @@ function typeName(value) {
52
52
code : 'ERR_INVALID_ARG_TYPE' ,
53
53
type : TypeError ,
54
54
message : 'The "options.envPairs" property must be of type array. ' +
55
- ' Received type ' + typeName ( envPairs )
55
+ ` Received type ${ typeName ( envPairs ) } `
56
56
} ) ) ;
57
57
} ) ;
58
58
}
@@ -67,8 +67,8 @@ function typeName(value) {
67
67
} , common . expectsError ( {
68
68
code : 'ERR_INVALID_ARG_TYPE' ,
69
69
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 ) } `
72
72
} ) ) ;
73
73
} ) ;
74
74
}
0 commit comments