summaryrefslogtreecommitdiff
path: root/tests/unit_node/_fs/_fs_stat_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_node/_fs/_fs_stat_test.ts')
-rw-r--r--tests/unit_node/_fs/_fs_stat_test.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit_node/_fs/_fs_stat_test.ts b/tests/unit_node/_fs/_fs_stat_test.ts
index 09d78f9db..02c620e2d 100644
--- a/tests/unit_node/_fs/_fs_stat_test.ts
+++ b/tests/unit_node/_fs/_fs_stat_test.ts
@@ -133,7 +133,9 @@ Deno.test("[std/node/fs] stat callback isn't called twice if error is thrown", a
Deno.test({
name: "[std/node/fs] stat default methods",
fn() {
- const stats = new Stats();
+ // stats ctor is private
+ // deno-lint-ignore no-explicit-any
+ const stats = new (Stats as any)();
assertEquals(stats.isFile(), false);
assertEquals(stats.isDirectory(), false);
assertEquals(stats.isBlockDevice(), false);