Skip to content

Commit b923b9d

Browse files
mac-haojinjasnell
authored andcommitted
test: replace string concat in test-child-process-constructor
replace string concatenation in test/parallel/test-child-process-constructor.js with template literals PR-URL: #14283 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 01eddd9 commit b923b9d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/parallel/test-child-process-constructor.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)