test: fix arguments order in test-fs-write-buffer
PR-URL: https://github.com/nodejs/node/pull/24155 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
1ba701383f
commit
52c548b05d
@ -58,11 +58,11 @@ tmpdir.refresh();
|
||||
const cb = common.mustCall((err, written) => {
|
||||
assert.ifError(err);
|
||||
|
||||
assert.strictEqual(2, written);
|
||||
assert.strictEqual(written, 2);
|
||||
fs.closeSync(fd);
|
||||
|
||||
const found = fs.readFileSync(filename, 'utf8');
|
||||
assert.strictEqual('lo', found);
|
||||
assert.strictEqual(found, 'lo');
|
||||
});
|
||||
|
||||
fs.write(fd, Buffer.from('hello'), 3, cb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user