Skip to content

Commit

Permalink
test: update test/parallel/test-child-process-stdio.js
Browse files Browse the repository at this point in the history
Refs: nodejs/code-and-learn#56(comment)

Replace the equal assetion with strictEqual.
Replace the notEqual assertion with strictNotEqual.

PR-URL: #8584
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Robert Jefe Lindstaedt <[email protected]>
  • Loading branch information
matzavinos authored and jasnell committed Sep 29, 2016
1 parent 5dd98c6 commit af35127
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-child-process-stdio.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ const assert = require('assert');
let options = {stdio: ['pipe']};
let child = common.spawnPwd(options);

assert.notEqual(child.stdout, null);
assert.notEqual(child.stderr, null);
assert.notStrictEqual(child.stdout, null);
assert.notStrictEqual(child.stderr, null);

options = {stdio: 'ignore'};
child = common.spawnPwd(options);

assert.equal(child.stdout, null);
assert.equal(child.stderr, null);
assert.strictEqual(child.stdout, null);
assert.strictEqual(child.stderr, null);

options = {stdio: 'ignore'};
child = common.spawnSyncCat(options);
Expand Down

0 comments on commit af35127

Please sign in to comment.