Skip to content

Commit e713482

Browse files
vsemozhetbytaddaleax
authored andcommitted
test: fix typo in test-cli-node-options.js
`expect` was probably a typo, as it is a function and will always be `undefined` as JSON. The previous `test()` check infers it should be `want`. PR-URL: #13558 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 32c87ac commit e713482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-cli-node-options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ function expect(opt, want) {
7272
assert.ifError(err);
7373
if (!RegExp(want).test(stdout)) {
7474
console.error('For %j, failed to find %j in: <\n%s\n>',
75-
opt, expect, stdout);
76-
assert(false, `Expected ${expect}`);
75+
opt, want, stdout);
76+
assert.fail(`Expected ${want}`);
7777
}
7878
}));
7979
}

0 commit comments

Comments
 (0)