Skip to content

Commit

Permalink
test: fs readfile, swap arguments in strictEqual
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
dodev authored and kiyomizumia committed Nov 15, 2018
1 parent e73ee88 commit 209f1a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-readfile-fd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand All @@ -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) {
Expand Down

0 comments on commit 209f1a5

Please sign in to comment.