summaryrefslogtreecommitdiff
path: root/tests/unit_node/inspector_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_node/inspector_test.ts')
-rw-r--r--tests/unit_node/inspector_test.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit_node/inspector_test.ts b/tests/unit_node/inspector_test.ts
index ec4d0ae3a..a53e977bb 100644
--- a/tests/unit_node/inspector_test.ts
+++ b/tests/unit_node/inspector_test.ts
@@ -1,7 +1,11 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import inspector from "node:inspector";
+import inspector, { Session } from "node:inspector";
import { assertEquals } from "@std/assert/equals";
Deno.test("[node/inspector] - importing inspector works", () => {
assertEquals(typeof inspector.open, "function");
});
+
+Deno.test("[node/inspector] - Session constructor should not throw", () => {
+ new Session();
+});