Skip to content

Commit

Permalink
test: refactor test-child-process-stdin
Browse files Browse the repository at this point in the history
Use assert.strictEqual instead of assert.equal and assert.ok

PR-URL: #10420
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
navulirs authored and evanlucas committed Jan 3, 2017
1 parent 1e6319a commit a018c60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-child-process-stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ cat.stdin.write('hello');
cat.stdin.write(' ');
cat.stdin.write('world');

assert.ok(cat.stdin.writable);
assert.ok(!cat.stdin.readable);
assert.strictEqual(true, cat.stdin.writable);
assert.strictEqual(false, cat.stdin.readable);

cat.stdin.end();

Expand All @@ -34,8 +34,8 @@ cat.on('exit', common.mustCall(function(status) {

cat.on('close', common.mustCall(function() {
if (common.isWindows) {
assert.equal('hello world\r\n', response);
assert.strictEqual('hello world\r\n', response);
} else {
assert.equal('hello world', response);
assert.strictEqual('hello world', response);
}
}));

0 comments on commit a018c60

Please sign in to comment.