Skip to content

Commit

Permalink
test: refactor test-fs-read-zero-length.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Jan 11, 2017
1 parent 6509d74 commit 87461e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-read-zero-length.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const fd = fs.openSync(filepath, 'r');
const bufferAsync = Buffer.alloc(0);
const bufferSync = Buffer.alloc(0);

fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall(function(err, bytesRead) {
fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall((err, bytesRead) => {
assert.strictEqual(bytesRead, 0);
assert.deepStrictEqual(bufferAsync, Buffer.alloc(0));
}));
Expand Down

0 comments on commit 87461e8

Please sign in to comment.