Skip to content

Commit b73f6b7

Browse 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 <[email protected]>
1 parent 371ca03 commit b73f6b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ var assert = require('assert');
55

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

1010
varenoentChild=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)