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: https://github.com/nodejs/node/pull/13558 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
8beff64851
commit
401a37281e
@ -72,8 +72,8 @@ function expect(opt, want) {
|
||||
assert.ifError(err);
|
||||
if (!RegExp(want).test(stdout)) {
|
||||
console.error('For %j, failed to find %j in: <\n%s\n>',
|
||||
opt, expect, stdout);
|
||||
assert(false, `Expected ${expect}`);
|
||||
opt, want, stdout);
|
||||
assert.fail(`Expected ${want}`);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user