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
  • Loading branch information
razvanbh committed Nov 7, 2018
1 parent 8c3f903 commit 89e2a7d
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 89e2a7d

Please sign in to comment.