From 6f0fb016734b8225cd426721fe547ada8ac444aa Mon Sep 17 00:00:00 2001 From: sota1235 Date: Sat, 24 Nov 2018 16:12:36 +0900 Subject: [PATCH] test: fix the arguments order in `assert.strictEqual` PR-URL: https://github.com/nodejs/node/pull/24595 Reviewed-By: Anna Henningsen Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig --- 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 4d9df25d4cd2ac..d66657d690f1b2 100644 --- a/test/parallel/test-file-write-stream.js +++ b/test/parallel/test-file-write-stream.js @@ -53,10 +53,10 @@ file console.error('drain!', callbacks.drain); callbacks.drain++; if (callbacks.drain === -1) { - assert.strictEqual(EXPECTED, fs.readFileSync(fn, 'utf8')); + assert.strictEqual(fs.readFileSync(fn, 'utf8'), EXPECTED); file.write(EXPECTED); } else if (callbacks.drain === 0) { - assert.strictEqual(EXPECTED + EXPECTED, fs.readFileSync(fn, 'utf8')); + assert.strictEqual(fs.readFileSync(fn, 'utf8'), EXPECTED + EXPECTED); file.end(); } })