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 Trott committed Nov 8, 2018
1 parent ca51b94 commit f884a57
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 f884a57

Please sign in to comment.