From fb9a0ad6c036d421f6a22acd2193ec3b8bc1ad93 Mon Sep 17 00:00:00 2001 From: Segu Riluvan Date: Thu, 22 Dec 2016 21:27:56 -0600 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-child-process-stdin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-child-process-stdin.js b/test/parallel/test-child-process-stdin.js index 4a371b83fb..ff16e1879b 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(); @@ -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); } });