diff options
author | Petar Dodev <petar.dodev@gmail.com> | 2018-11-06 17:29:36 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-08 15:09:06 -0800 |
commit | f884a5767bbc5195d6f9b1f962c259999bafd88a (patch) | |
tree | 4b62040ad5a4651d864b84a93d503421a56d4010 /test/parallel/test-fs-readfile-fd.js | |
parent | ca51b9471ce2e031a569e49d6c6188e36f9a1b81 (diff) | |
download | android-node-v8-f884a5767bbc5195d6f9b1f962c259999bafd88a.tar.gz android-node-v8-f884a5767bbc5195d6f9b1f962c259999bafd88a.tar.bz2 android-node-v8-f884a5767bbc5195d6f9b1f962c259999bafd88a.zip |
test: fs readfile, swap arguments in strictEqual
PR-URL: https://github.com/nodejs/node/pull/24133
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-fs-readfile-fd.js')
-rw-r--r-- | test/parallel/test-fs-readfile-fd.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-fs-readfile-fd.js b/test/parallel/test-fs-readfile-fd.js index 7458af7b2e..b5d2a33e28 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) { |