Skip to content

Commit 939517a

Browse files
hiroppyitaloacasas
authored andcommitted
test: refactor test-fs-read-zero-length.js
PR-URL: #10729 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent ffdf605 commit 939517a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-read-zero-length.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const filepath = path.join(common.fixturesDir, 'x.txt');
77
const fd = fs.openSync(filepath, 'r');
88
const expected = '';
99

10-
fs.read(fd, 0, 0, 'utf-8', common.mustCall(function(err, str, bytesRead) {
10+
fs.read(fd, 0, 0, 'utf-8', common.mustCall((err, str, bytesRead) => {
1111
assert.ok(!err);
1212
assert.strictEqual(str, expected);
1313
assert.strictEqual(bytesRead, 0);

0 commit comments

Comments
 (0)