Browse Source

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>
v4.x
Segu Riluvan 8 years ago
committed by Myles Borins
parent
commit
fb9a0ad6c0
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 8
      test/parallel/test-child-process-stdin.js

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

@ -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();
@ -51,8 +51,8 @@ process.on('exit', function() {
assert.equal(0, exitStatus);
assert(closed);
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);
}
});

Loading…
Cancel
Save