diff --git a/test/parallel/test-child-process-constructor.js b/test/parallel/test-child-process-constructor.js index ea81f806060cb6..fe94ff066ed815 100644 --- a/test/parallel/test-child-process-constructor.js +++ b/test/parallel/test-child-process-constructor.js @@ -19,8 +19,8 @@ function typeName(value) { }, common.expectsError({ code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: 'The "options" argument must be of type object. Received type ' + - typeName(options) + message: 'The "options" argument must be of type object. ' + + `Received type ${typeName(options)}` })); }); } @@ -35,8 +35,8 @@ function typeName(value) { }, common.expectsError({ code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: 'The "options.file" property must be of type string. Received ' + - 'type ' + typeName(file) + message: 'The "options.file" property must be of type string. ' + + `Received type ${typeName(file)}` })); }); } @@ -52,7 +52,7 @@ function typeName(value) { code: 'ERR_INVALID_ARG_TYPE', type: TypeError, message: 'The "options.envPairs" property must be of type array. ' + - 'Received type ' + typeName(envPairs) + `Received type ${typeName(envPairs)}` })); }); } @@ -67,8 +67,8 @@ function typeName(value) { }, common.expectsError({ code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: 'The "options.args" property must be of type array. Received ' + - 'type ' + typeName(args) + message: 'The "options.args" property must be of type array. ' + + `Received type ${typeName(args)}` })); }); }