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: fix broken assertion
This commit fixes a broken assertion in test-cli-eval.js.
  • Loading branch information
cjihrig committed Jan 16, 2017
commit 013da32efbe224351c549e225034c29a205c2d82
3 changes: 2 additions & 1 deletion test/parallel/test-cli-eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ child.exec(nodejs + ' --eval "require(\'./test/parallel/test-cli-eval.js\')"',
child.exec(nodejs + ' -e', common.mustCall(function(err, stdout, stderr) {
assert.strictEqual(err.code, 9);
assert.strictEqual(stdout, '');
assert(stderr.match(/node: -e requires an argument\n/));
assert.strictEqual(stderr.trim(),
`${process.execPath}: -e requires an argument`);
}));

// empty program should do nothing
Expand Down