diff options
author | Marvin Hagemeister <marvin@deno.com> | 2024-08-14 15:34:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-14 13:34:24 +0000 |
commit | c765d9ad2fbd82be1b025cae3930fdfe8e30f9e2 (patch) | |
tree | 77f80cd073fc66ab6e00c27637f36dde7b7e7b32 /tests | |
parent | 130a2592f1e946be563c7f167d7127f49a1014d1 (diff) |
fix(node/inspector): Session constructor should not throw (#25041)
There is no constructor code when creating an inspector `Session`
instance in Node. Also get rid of some symbols which should've been
private properties. This PR doesn't yet add any new implementations
though as these are mostly cosmetic changes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_node/inspector_test.ts | 6 |
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(); +}); |