Skip to content

Commit c5e3816

Browse files
Dmitriy Kikinskiytargos
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 <[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]>
1 parent 5be20b4 commit c5e3816

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)