★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/90f98905f1Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files

test: fix arguments order in test-fs-write-buffer

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 MylesBorins committed Nov 6, 2018
1 parent 1588fba commit 90f98905f1be2d1a85800afd438d51db6d08a0df
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-fs-write-buffer.js
@@ -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);

0 comments on commit 90f9890

Please sign in to comment.
You can’t perform that action at this time.