From 9f028f2a507ad8635f0ad369e56ece102316321f Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Thu, 8 Jun 2017 23:11:50 +0300 Subject: [PATCH] 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`. --- test/parallel/test-cli-node-options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js index bff0471808906a..0c39813cf62ccd 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}`); } })); }