Skip to content

Commit d86ff5f

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 2057a63 commit d86ff5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const fd = fs.openSync(filepath, 'r');
99
const bufferAsync = Buffer.alloc(0);
1010
const bufferSync = Buffer.alloc(0);
1111

12-
fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall(function(err, bytesRead) {
12+
fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall((err, bytesRead) => {
1313
assert.strictEqual(bytesRead, 0);
1414
assert.deepStrictEqual(bufferAsync, Buffer.alloc(0));
1515
}));

0 commit comments

Comments
 (0)