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.
  • Loading branch information
Dmitriy Kikinskiy committed Nov 10, 2019
1 parent e44d73f commit acdbc6c
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 acdbc6c

Please sign in to comment.