test: refactor test-child-process-stdin
Use assert.strictEqual instead of assert.equal and assert.ok PR-URL: https://github.com/nodejs/node/pull/10420 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
be6de1a0c8
commit
0304848c73
@ -9,8 +9,8 @@ cat.stdin.write('hello');
|
|||||||
cat.stdin.write(' ');
|
cat.stdin.write(' ');
|
||||||
cat.stdin.write('world');
|
cat.stdin.write('world');
|
||||||
|
|
||||||
assert.ok(cat.stdin.writable);
|
assert.strictEqual(true, cat.stdin.writable);
|
||||||
assert.ok(!cat.stdin.readable);
|
assert.strictEqual(false, cat.stdin.readable);
|
||||||
|
|
||||||
cat.stdin.end();
|
cat.stdin.end();
|
||||||
|
|
||||||
@ -34,8 +34,8 @@ cat.on('exit', common.mustCall(function(status) {
|
|||||||
|
|
||||||
cat.on('close', common.mustCall(function() {
|
cat.on('close', common.mustCall(function() {
|
||||||
if (common.isWindows) {
|
if (common.isWindows) {
|
||||||
assert.equal('hello world\r\n', response);
|
assert.strictEqual('hello world\r\n', response);
|
||||||
} else {
|
} else {
|
||||||
assert.equal('hello world', response);
|
assert.strictEqual('hello world', response);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user