Browse Source

test: refactor test-child-process-spawn-error

Change instances of assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9937
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
stokingerl 8 years ago
committed by Rich Trott
parent
commit
9dcf07a366
  1. 10
      test/parallel/test-child-process-spawn-error.js

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

@ -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);
}));

Loading…
Cancel
Save