Skip to content
Permalink
Browse files

test: dir class initialisation w/o handler

Covering the case when init Dir class without passing
handle paramd to constructor.

PR-URL: #30313
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Dmitriy Kikinskiy authored and MylesBorins committed Nov 6, 2019
1 parent c705a8e commit 12ef7d99eb77826126021c100b55b6b3a6346e09
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/parallel/test-fs-read.js
@@ -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),
{

0 comments on commit 12ef7d9

Please sign in to comment.
You can’t perform that action at this time.