Browse Source

test: refactor test-child-process-stdio-inherit

assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9893
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v7.x
Wes Tyler 8 years ago
committed by Anna Henningsen
parent
commit
e070588a8a
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 6
      test/parallel/test-child-process-stdio-inherit.js

6
test/parallel/test-child-process-stdio-inherit.js

@ -22,10 +22,10 @@ function grandparent() {
child.stdin.end(input);
child.on('close', function(code, signal) {
assert.equal(code, 0);
assert.equal(signal, null);
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
// cat on windows adds a \r\n at the end.
assert.equal(output.trim(), input.trim());
assert.strictEqual(output.trim(), input.trim());
});
}

Loading…
Cancel
Save