mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: update test/parallel/test-child-process-stdio.js
Refs: nodejs/code-and-learn#56(comment) Replace the equal assetion with strictEqual. Replace the notEqual assertion with strictNotEqual. PR-URL: https://github.com/nodejs/node/pull/8584 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
This commit is contained in:
1 parent
fef4341f46
commit
dfd022ff9e
1 file changed
+4
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user