diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-06-08 23:11:50 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-06-12 12:15:07 +0300 |
commit | 401a37281e63ef0164e44ce66d2c67f995bcefd1 (patch) | |
tree | 49eb10bbdfa7dd02291ac93da3acdab553898961 /test/parallel/test-cli-node-options.js | |
parent | 8beff648518aa8e846221d03e31bea5f78f62010 (diff) | |
download | android-node-v8-401a37281e63ef0164e44ce66d2c67f995bcefd1.tar.gz android-node-v8-401a37281e63ef0164e44ce66d2c67f995bcefd1.tar.bz2 android-node-v8-401a37281e63ef0164e44ce66d2c67f995bcefd1.zip |
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>
Diffstat (limited to 'test/parallel/test-cli-node-options.js')
-rw-r--r-- | test/parallel/test-cli-node-options.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js index bff0471808..0c39813cf6 100644 --- a/test/parallel/test-cli-node-options.js +++ b/test/parallel/test-cli-node-options.js @@ -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}`); } })); } |