diff options
author | Segu Riluvan <rilwan22@hotmail.com> | 2016-12-22 21:27:56 -0600 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-12-23 18:56:03 -0800 |
commit | 0304848c73f8f9fd12af3cc398d11db49655cbaf (patch) | |
tree | a2dc873c04298de0b24010d525a3e80881adc86e /test/parallel/test-child-process-stdin.js | |
parent | be6de1a0c82a91bec2dc6b510f0aedbf2f73b6bc (diff) | |
download | android-node-v8-0304848c73f8f9fd12af3cc398d11db49655cbaf.tar.gz android-node-v8-0304848c73f8f9fd12af3cc398d11db49655cbaf.tar.bz2 android-node-v8-0304848c73f8f9fd12af3cc398d11db49655cbaf.zip |
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>
Diffstat (limited to 'test/parallel/test-child-process-stdin.js')
-rw-r--r-- | test/parallel/test-child-process-stdin.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-child-process-stdin.js b/test/parallel/test-child-process-stdin.js index 95be2d4c8a..eccced0c32 100644 --- a/test/parallel/test-child-process-stdin.js +++ b/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(); @@ -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); } })); |