Browse Source

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>
v6
Vse Mozhet Byt 8 years ago
parent
commit
401a37281e
  1. 4
      test/parallel/test-cli-node-options.js

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

@ -72,8 +72,8 @@ function expect(opt, want) {
assert.ifError(err); assert.ifError(err);
if (!RegExp(want).test(stdout)) { if (!RegExp(want).test(stdout)) {
console.error('For %j, failed to find %j in: <\n%s\n>', console.error('For %j, failed to find %j in: <\n%s\n>',
opt, expect, stdout); opt, want, stdout);
assert(false, `Expected ${expect}`); assert.fail(`Expected ${want}`);
} }
})); }));
} }

Loading…
Cancel
Save