Skip to content

Commit

Permalink
test: fix broken assertion
Browse files Browse the repository at this point in the history
This commit fixes a broken assertion in test-cli-eval.js.
  • Loading branch information
cjihrig committed Jan 16, 2017
1 parent f4fd073 commit 013da32
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 013da32

Please sign in to comment.