Skip to content

Commit

Permalink
test: refactor test-child-process-spawn-error
Browse files Browse the repository at this point in the history
Change instances of assert.equal to assert.strictEqual.

PR-URL: nodejs#9937
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
stokingerl authored and Trott committed Dec 4, 2016
1 parent 1a324f2 commit 9dcf07a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-child-process-spawn-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ var assert = require('assert');

var enoentPath = 'foo123';
var spawnargs = ['bar'];
assert.equal(common.fileExists(enoentPath), false);
assert.strictEqual(common.fileExists(enoentPath), false);

var enoentChild = spawn(enoentPath, spawnargs);
enoentChild.on('error', common.mustCall(function(err) {
assert.equal(err.code, 'ENOENT');
assert.equal(err.errno, 'ENOENT');
assert.equal(err.syscall, 'spawn ' + enoentPath);
assert.equal(err.path, enoentPath);
assert.strictEqual(err.code, 'ENOENT');
assert.strictEqual(err.errno, 'ENOENT');
assert.strictEqual(err.syscall, 'spawn ' + enoentPath);
assert.strictEqual(err.path, enoentPath);
assert.deepStrictEqual(err.spawnargs, spawnargs);
}));

0 comments on commit 9dcf07a

Please sign in to comment.