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 italoacasas committed Jan 30, 2017
1 parent ffdf605 commit 939517a
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.strictEqual(str, expected);
assert.strictEqual(bytesRead, 0);
Expand Down

0 comments on commit 939517a

Please sign in to comment.