Skip to content

Commit fb9a0ad

Browse files
navulirsMylesBorins
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 <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent dda777b commit fb9a0ad

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

@@ -51,8 +51,8 @@ process.on('exit', function() {
5151
assert.equal(0, exitStatus);
5252
assert(closed);
5353
if (common.isWindows) {
54-
assert.equal('hello world\r\n', response);
54+
assert.strictEqual('hello world\r\n', response);
5555
} else {
56-
assert.equal('hello world', response);
56+
assert.strictEqual('hello world', response);
5757
}
5858
});

0 commit comments

Comments
 (0)