Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 32da59a

Browse filesBrowse files
cjihrigItalo A. Casas
authored andcommitted
test: fix broken assertion
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>
1 parent 29a4d35 commit 32da59a
Copy full SHA for 32da59a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-cli-eval.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cli-eval.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ child.exec(nodejs + ' --eval "require(\'./test/parallel/test-cli-eval.js\')"',
8181
child.exec(nodejs + ' -e', common.mustCall(function(err, stdout, stderr) {
8282
assert.strictEqual(err.code, 9);
8383
assert.strictEqual(stdout, '');
84-
assert(stderr.match(/node: -e requires an argument\n/));
84+
assert.strictEqual(stderr.trim(),
85+
`${process.execPath}: -e requires an argument`);
8586
}));
8687

8788
// empty program should do nothing

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.