FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: refactor test-fs-read-zero-length.js · nodejs/node@939517a · GitHub

/ node Public

Commit 939517a

Browse files
authored andcommitted
test: refactor test-fs-read-zero-length.js
PR-URL: #10729 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent ffdf605 commit 939517a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)

Back | FazBrowse Home | New Git URL