diff --git a/test/parallel/test-cli-syntax.js b/test/parallel/test-cli-syntax.js index 1118a63934d747..2f20ab0d11dcd9 100644 --- a/test/parallel/test-cli-syntax.js +++ b/test/parallel/test-cli-syntax.js @@ -30,9 +30,9 @@ var syntaxArgs = [ var c = spawnSync(node, _args, {encoding: 'utf8'}); // no output should be produced - assert.equal(c.stdout, '', 'stdout produced'); - assert.equal(c.stderr, '', 'stderr produced'); - assert.equal(c.status, 0, 'code == ' + c.status); + assert.strictEqual(c.stdout, '', 'stdout produced'); + assert.strictEqual(c.stderr, '', 'stderr produced'); + assert.strictEqual(c.status, 0, 'code == ' + c.status); }); }); @@ -51,13 +51,13 @@ var syntaxArgs = [ var c = spawnSync(node, _args, {encoding: 'utf8'}); // no stdout should be produced - assert.equal(c.stdout, '', 'stdout produced'); + assert.strictEqual(c.stdout, '', 'stdout produced'); // stderr should have a syntax error message var match = c.stderr.match(/^SyntaxError: Unexpected identifier$/m); assert(match, 'stderr incorrect'); - assert.equal(c.status, 1, 'code == ' + c.status); + assert.strictEqual(c.status, 1, 'code == ' + c.status); }); }); @@ -74,12 +74,12 @@ var syntaxArgs = [ var c = spawnSync(node, _args, {encoding: 'utf8'}); // no stdout should be produced - assert.equal(c.stdout, '', 'stdout produced'); + assert.strictEqual(c.stdout, '', 'stdout produced'); // stderr should have a module not found error message var match = c.stderr.match(/^Error: Cannot find module/m); assert(match, 'stderr incorrect'); - assert.equal(c.status, 1, 'code == ' + c.status); + assert.strictEqual(c.status, 1, 'code == ' + c.status); }); });