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.

PR-URL: #10840
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
cjihrig authored and italoacasas committed Jan 30, 2017
1 parent 29a4d35 commit 32da59a
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 32da59a

Please sign in to comment.