test: change style in test-cli-bad-options
Replace string concatenation in test/parallel/test-cli-bad-options.js with template literal. Adjust argument layout for readability. PR-URL: https://github.com/nodejs/node/pull/14274 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
25f27b787e
commit
3f7216c198
@ -18,6 +18,8 @@ function requiresArgument(option) {
|
||||
assert.strictEqual(r.status, 9);
|
||||
|
||||
const msg = r.stderr.split(/\r?\n/)[0];
|
||||
assert.strictEqual(msg, process.execPath + ': ' + option +
|
||||
' requires an argument');
|
||||
assert.strictEqual(
|
||||
msg,
|
||||
`${process.execPath}: ${option} requires an argument`
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user