Skip to content

Commit

Permalink
squash: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Apr 21, 2022
1 parent ccaa4cb commit 0e6b06a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-read-offset-null.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const buf = Buffer.alloc(1);
// Reading only one character, hence buffer of one byte is enough.

// Test for callback API.
fs.open(filepath, 'r', (_, fd) => {
fs.open(filepath, 'r', common.mustSucceed((fd) => {
assert.throws(
() => fs.read(fd, { offset: null, buffer: buf }, () => {}),
{ code: 'ERR_INVALID_ARG_TYPE' }
Expand All @@ -25,7 +25,7 @@ fs.open(filepath, 'r', (_, fd) => {
{ code: 'ERR_INVALID_ARG_TYPE' }
);
fs.close(fd, common.mustSucceed(() => {}));
});
}));

let filehandle = null;

Expand Down

0 comments on commit 0e6b06a

Please sign in to comment.