Skip to content

Commit a8908f1

Browse files
dodevBridgeAR
authored andcommitted
test: fs readfile, swap arguments in strictEqual
PR-URL: #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>
1 parent d0bf8c2 commit a8908f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-fs-readfile-fd.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tempFd(function(fd, close) {
1717

1818
tempFd(function(fd, close) {
1919
fs.readFile(fd, 'utf8', function(err, data) {
20-
assert.strictEqual('', data);
20+
assert.strictEqual(data, '');
2121
close();
2222
});
2323
});
@@ -27,7 +27,7 @@ tempFdSync(function(fd) {
2727
});
2828

2929
tempFdSync(function(fd) {
30-
assert.strictEqual('', fs.readFileSync(fd, 'utf8'));
30+
assert.strictEqual(fs.readFileSync(fd, 'utf8'), '');
3131
});
3232

3333
function tempFd(callback) {

0 commit comments

Comments
 (0)