Skip to content

Commit 318a2db

Browse files
Exlipse7Fishrock123
authored andcommitted
test: refactor test-cli-syntax
Switch assert.equal to assert.strictEqual. PR-URL: #10057 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent da8e3d9 commit 318a2db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/parallel/test-cli-syntax.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var syntaxArgs = [
2929
var c = spawnSync(node, _args, {encoding: 'utf8'});
3030

3131
// no output should be produced
32-
assert.equal(c.stdout, '', 'stdout produced');
33-
assert.equal(c.stderr, '', 'stderr produced');
34-
assert.equal(c.status, 0, 'code == ' + c.status);
32+
assert.strictEqual(c.stdout, '', 'stdout produced');
33+
assert.strictEqual(c.stderr, '', 'stderr produced');
34+
assert.strictEqual(c.status, 0, 'code == ' + c.status);
3535
});
3636
});
3737

@@ -50,13 +50,13 @@ var syntaxArgs = [
5050
var c = spawnSync(node, _args, {encoding: 'utf8'});
5151

5252
// no stdout should be produced
53-
assert.equal(c.stdout, '', 'stdout produced');
53+
assert.strictEqual(c.stdout, '', 'stdout produced');
5454

5555
// stderr should have a syntax error message
5656
var match = c.stderr.match(/^SyntaxError: Unexpected identifier$/m);
5757
assert(match, 'stderr incorrect');
5858

59-
assert.equal(c.status, 1, 'code == ' + c.status);
59+
assert.strictEqual(c.status, 1, 'code == ' + c.status);
6060
});
6161
});
6262

@@ -73,12 +73,12 @@ var syntaxArgs = [
7373
var c = spawnSync(node, _args, {encoding: 'utf8'});
7474

7575
// no stdout should be produced
76-
assert.equal(c.stdout, '', 'stdout produced');
76+
assert.strictEqual(c.stdout, '', 'stdout produced');
7777

7878
// stderr should have a module not found error message
7979
var match = c.stderr.match(/^Error: Cannot find module/m);
8080
assert(match, 'stderr incorrect');
8181

82-
assert.equal(c.status, 1, 'code == ' + c.status);
82+
assert.strictEqual(c.status, 1, 'code == ' + c.status);
8383
});
8484
});

0 commit comments

Comments
 (0)