From 78a320130df9710085a6265601cfd2fb9fcf22ca Mon Sep 17 00:00:00 2001 From: Remy Parzinski Date: Tue, 6 Nov 2018 15:47:41 +0100 Subject: [PATCH] test: change order of assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/24142 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- test/parallel/test-file-write-stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-file-write-stream.js b/test/parallel/test-file-write-stream.js index 4860417dd29bc5..4d9df25d4cd2ac 100644 --- a/test/parallel/test-file-write-stream.js +++ b/test/parallel/test-file-write-stream.js @@ -44,7 +44,7 @@ file .on('open', function(fd) { console.error('open!'); callbacks.open++; - assert.strictEqual('number', typeof fd); + assert.strictEqual(typeof fd, 'number'); }) .on('error', function(err) { throw err; @@ -86,7 +86,7 @@ for (let i = 0; i < 11; i++) { process.on('exit', function() { for (const k in callbacks) { - assert.strictEqual(0, callbacks[k], `${k} count off by ${callbacks[k]}`); + assert.strictEqual(callbacks[k], 0, `${k} count off by ${callbacks[k]}`); } console.log('ok'); });