From e599889649334a4d8bd0f7eb7dd924d896490d14 Mon Sep 17 00:00:00 2001 From: Petar Dodev Date: Tue, 6 Nov 2018 17:29:36 +0300 Subject: [PATCH] test: fs readfile, swap arguments in strictEqual PR-URL: https://github.com/nodejs/node/pull/24133 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: Gireesh Punathil --- test/parallel/test-fs-readfile-fd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-readfile-fd.js b/test/parallel/test-fs-readfile-fd.js index 7458af7b2e53af..b5d2a33e285f5f 100644 --- a/test/parallel/test-fs-readfile-fd.js +++ b/test/parallel/test-fs-readfile-fd.js @@ -17,7 +17,7 @@ tempFd(function(fd, close) { tempFd(function(fd, close) { fs.readFile(fd, 'utf8', function(err, data) { - assert.strictEqual('', data); + assert.strictEqual(data, ''); close(); }); }); @@ -27,7 +27,7 @@ tempFdSync(function(fd) { }); tempFdSync(function(fd) { - assert.strictEqual('', fs.readFileSync(fd, 'utf8')); + assert.strictEqual(fs.readFileSync(fd, 'utf8'), ''); }); function tempFd(callback) {