Browse Source

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>
v6
boydfd 8 years ago
committed by Rich Trott
parent
commit
3f7216c198
  1. 6
      test/parallel/test-cli-bad-options.js

6
test/parallel/test-cli-bad-options.js

@ -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…
Cancel
Save