From 317901174c20d2f4353f66fbab5bce0d023dff04 Mon Sep 17 00:00:00 2001 From: razvanbh Date: Tue, 6 Nov 2018 17:25:27 +0200 Subject: [PATCH] test: fix arguments order in test-fs-write-buffer PR-URL: https://github.com/nodejs/node/pull/24155 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater --- test/parallel/test-fs-write-buffer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-write-buffer.js b/test/parallel/test-fs-write-buffer.js index 6e6154642a583d..0ff9fd69a82a3a 100644 --- a/test/parallel/test-fs-write-buffer.js +++ b/test/parallel/test-fs-write-buffer.js @@ -58,11 +58,11 @@ tmpdir.refresh(); const cb = common.mustCall((err, written) => { assert.ifError(err); - assert.strictEqual(2, written); + assert.strictEqual(written, 2); fs.closeSync(fd); const found = fs.readFileSync(filename, 'utf8'); - assert.strictEqual('lo', found); + assert.strictEqual(found, 'lo'); }); fs.write(fd, Buffer.from('hello'), 3, cb);