Skip to content

Commit

Permalink
test: dir class initialisation w/o handler
Browse files Browse the repository at this point in the history
Covering the case when init Dir class without passing
handle paramd to constructor.

PR-URL: #30313
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
Dmitriy Kikinskiy authored and addaleax committed Nov 30, 2019
1 parent 329a821 commit d4b6170
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallel/test-fs-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ test(new Uint8Array(expected.length),
}));
}

assert.throws(() => new fs.Dir(), {
code: 'ERR_MISSING_ARGS',
});

assert.throws(
() => fs.read(fd, Buffer.alloc(1), 0, 1, 0),
{
Expand Down

0 comments on commit d4b6170

Please sign in to comment.