Skip to content

Commit

Permalink
test: change style in test-cli-bad-options
Browse files Browse the repository at this point in the history
Replace string concatenation in test/parallel/test-cli-bad-options.js
with template literal. Adjust argument layout for readability.

PR-URL: #14274
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
boydfd authored and Fishrock123 committed Jul 19, 2017
1 parent bf55439 commit 5d06d0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/parallel/test-cli-bad-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
);
}

0 comments on commit 5d06d0b

Please sign in to comment.