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 b73f6b7

Browse filesBrowse files
stokingerladdaleax
authored andcommitted
test: refactor test-child-process-spawn-error
Change instances of assert.equal to assert.strictEqual. PR-URL: #9937 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 371ca03 commit b73f6b7
Copy full SHA for b73f6b7

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-child-process-spawn-error.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawn-error.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ var assert = require('assert');
55

66
var enoentPath = 'foo123';
77
var spawnargs = ['bar'];
8-
assert.equal(common.fileExists(enoentPath), false);
8+
assert.strictEqual(common.fileExists(enoentPath), false);
99

1010
var enoentChild = spawn(enoentPath, spawnargs);
1111
enoentChild.on('error', common.mustCall(function(err) {
12-
assert.equal(err.code, 'ENOENT');
13-
assert.equal(err.errno, 'ENOENT');
14-
assert.equal(err.syscall, 'spawn ' + enoentPath);
15-
assert.equal(err.path, enoentPath);
12+
assert.strictEqual(err.code, 'ENOENT');
13+
assert.strictEqual(err.errno, 'ENOENT');
14+
assert.strictEqual(err.syscall, 'spawn ' + enoentPath);
15+
assert.strictEqual(err.path, enoentPath);
1616
assert.deepStrictEqual(err.spawnargs, spawnargs);
1717
}));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.