Skip to content

Commit

Permalink
test: fix arguments order in test-fs-write-buffer
Browse files Browse the repository at this point in the history
PR-URL: #24155
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
razvanbh authored and BridgeAR committed Nov 13, 2018
1 parent 9b3c2e5 commit 3179011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-write-buffer.js
Expand Up @@ -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);
Expand Down

0 comments on commit 3179011

Please sign in to comment.