Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 318a2db

Browse filesBrowse files
Exlipse7Fishrock123
authored andcommitted
test: refactor test-cli-syntax
Switch assert.equal to assert.strictEqual. PR-URL: #10057 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent da8e3d9 commit 318a2db
Copy full SHA for 318a2db

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-cli-syntax.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cli-syntax.js
+7-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.