Skip to content

Commit f9b292c

Browse files
boydfdaddaleax
authored andcommitted
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: #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]>
1 parent 9257e7e commit f9b292c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ function requiresArgument(option) {
1818
assert.strictEqual(r.status, 9);
1919

2020
const msg = r.stderr.split(/\r?\n/)[0];
21-
assert.strictEqual(msg, process.execPath + ': ' + option +
22-
' requires an argument');
21+
assert.strictEqual(
22+
msg,
23+
`${process.execPath}: ${option} requires an argument`
24+
);
2325
}

0 commit comments

Comments
 (0)