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 MylesBorins committed Dec 26, 2018
1 parent 04f8d6b commit e599889
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 e599889

Please sign in to comment.