Skip to content

Commit

Permalink
squash: resolve todo
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed May 16, 2022
1 parent cc614f5 commit 7597615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-fs-read-position-validation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ async function testInvalid(code, position) {

await testValid(2n ** 63n - 1n - BigInt(length), [ 'EFBIG' ]);
await testInvalid('ERR_OUT_OF_RANGE', 2n ** 63n);

// TODO(LiviaMedeiros): test `2n ** 63n - BigInt(length)`
await testInvalid('ERR_OUT_OF_RANGE', 2n ** 63n - BigInt(length));

await testInvalid('ERR_OUT_OF_RANGE', NaN);
await testInvalid('ERR_OUT_OF_RANGE', -Infinity);
Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-fs-readSync-position-validation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ function testInvalid(code, position, internalCatch = false) {

testValid(2n ** 63n - 1n - BigInt(length), [ 'EFBIG' ]);
testInvalid('ERR_OUT_OF_RANGE', 2n ** 63n);

// TODO(LiviaMedeiros): test `2n ** 63n - BigInt(length)`
testInvalid('ERR_OUT_OF_RANGE', 2n ** 63n - BigInt(length));

testInvalid('ERR_OUT_OF_RANGE', NaN);
testInvalid('ERR_OUT_OF_RANGE', -Infinity);
Expand Down

0 comments on commit 7597615

Please sign in to comment.