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: #24133
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
dodev authored and BridgeAR committed Nov 13, 2018
1 parent d0bf8c2 commit a8908f1
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 a8908f1

Please sign in to comment.