Skip to content

Commit 8c41b19

Browse files
Dmitriy Kikinskiygireeshpunathil
Dmitriy Kikinskiy
authored andcommitted
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>
1 parent 4506991 commit 8c41b19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-fs-read.js

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ test(new Uint8Array(expected.length),
6868
}));
6969
}
7070

71+
assert.throws(() => new fs.Dir(), {
72+
code: 'ERR_MISSING_ARGS',
73+
});
74+
7175
assert.throws(
7276
() => fs.read(fd, Buffer.alloc(1), 0, 1, 0),
7377
{

0 commit comments

Comments
 (0)