Skip to content

Commit

Permalink
test: refactor test-fs-read-zero-length.js
Browse files Browse the repository at this point in the history
PR-URL: #10729
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
hiroppy authored and jasnell committed Mar 8, 2017
1 parent 3033201 commit d481a63
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 @@ -7,7 +7,7 @@ const filepath = path.join(common.fixturesDir, 'x.txt');
const fd = fs.openSync(filepath, 'r');
const expected = '';

fs.read(fd, 0, 0, 'utf-8', common.mustCall(function(err, str, bytesRead) {
fs.read(fd, 0, 0, 'utf-8', common.mustCall((err, str, bytesRead) => {
assert.ok(!err);
assert.equal(str, expected);
assert.equal(bytesRead, 0);
Expand Down

0 comments on commit d481a63

Please sign in to comment.