Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: change style in parallel bad options
Replace string concatenation in test/parallel/test-cli-bad-options.js
with template literals.
  • Loading branch information
boydfd committed Jul 16, 2017
commit 8548021c97a18bca66a24ea2d1d6c548c409a975
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`
);
}