test: fs readfile, swap arguments in strictEqual
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
ca51b9471c
commit
f884a5767b
@ -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();
|
||||
});
|
||||
});
|
||||
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user