Skip to content

Commit acdbc6c

Browse files
author
Dmitriy Kikinskiy
committed
test: dir class initialisation w/o handler
Covering the case when init Dir class without passing handle paramd to constructor.
1 parent e44d73f commit acdbc6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-fs-read.js

Lines changed: 4 additions & 0 deletions
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)