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: nodejs#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 kiyomizumia committed Nov 15, 2018
1 parent d8c3c5f commit 1e8b0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-write-buffer.js
Original file line number Diff line number Diff line change
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 1e8b0c4

Please sign in to comment.