summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-constructor.js
diff options
context:
space:
mode:
authormac-haojin <hao.jin@live.cn>2017-07-16 15:40:17 +0800
committerJames M Snell <jasnell@gmail.com>2017-07-19 14:23:19 -0700
commitb923b9dee1262363b95a6b41aaf3c6761f6f2c50 (patch)
treec2e5e6126cacf025d382ea39824c0dee1ffb75b0 /test/parallel/test-child-process-constructor.js
parent01eddd97f733148b70d753129c612ef09db3493b (diff)
downloadandroid-node-v8-b923b9dee1262363b95a6b41aaf3c6761f6f2c50.tar.gz
android-node-v8-b923b9dee1262363b95a6b41aaf3c6761f6f2c50.tar.bz2
android-node-v8-b923b9dee1262363b95a6b41aaf3c6761f6f2c50.zip
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: https://github.com/nodejs/node/pull/14283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-constructor.js')
-rw-r--r--test/parallel/test-child-process-constructor.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/parallel/test-child-process-constructor.js b/test/parallel/test-child-process-constructor.js
index ea81f80606..fe94ff066e 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)}`
}));
});
}