From 401a37281e63ef0164e44ce66d2c67f995bcefd1 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`. PR-URL: https://github.com/nodejs/node/pull/13558 Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: Alexey Orlenko Reviewed-By: Michael Dawson Reviewed-By: Luigi Pinca --- 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 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}`); } })); }