Skip to content

Commit 08cc269

Browse files
Exlipse7MylesBorins
Exlipse7
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 91d27ce commit 08cc269

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
@@ -30,9 +30,9 @@ var syntaxArgs = [
3030
var c = spawnSync(node, _args, {encoding: 'utf8'});
3131

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

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

5353
// no stdout should be produced
54-
assert.equal(c.stdout, '', 'stdout produced');
54+
assert.strictEqual(c.stdout, '', 'stdout produced');
5555

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

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

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

7676
// no stdout should be produced
77-
assert.equal(c.stdout, '', 'stdout produced');
77+
assert.strictEqual(c.stdout, '', 'stdout produced');
7878

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

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

0 commit comments

Comments
 (0)