Skip to content

Commit d3bef30

Browse files
navulirsevanlucas
authored andcommitted
test: refactor test-child-process-stdin
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]>
1 parent e9b2325 commit d3bef30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-child-process-stdin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ cat.stdin.write('hello');
99
cat.stdin.write(' ');
1010
cat.stdin.write('world');
1111

12-
assert.ok(cat.stdin.writable);
13-
assert.ok(!cat.stdin.readable);
12+
assert.strictEqual(true, cat.stdin.writable);
13+
assert.strictEqual(false, cat.stdin.readable);
1414

1515
cat.stdin.end();
1616

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

3535
cat.on('close', common.mustCall(function() {
3636
if (common.isWindows) {
37-
assert.equal('hello world\r\n', response);
37+
assert.strictEqual('hello world\r\n', response);
3838
} else {
39-
assert.equal('hello world', response);
39+
assert.strictEqual('hello world', response);
4040
}
4141
}));

0 commit comments

Comments
 (0)