1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-19 12:16:17 -05:00
denoland-deno/tests/unit_node/inspector_test.ts

23 lines
724 B
TypeScript
Raw Normal View History

2025-01-01 04:12:39 +09:00
// Copyright 2018-2025 the Deno authors. MIT license.
import inspector, { Session } from "node:inspector";
import inspectorPromises, {
Session as SessionPromise,
} from "node:inspector/promises";
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();
});
Deno.test("[node/inspector/promises] - importing inspector works", () => {
assertEquals(typeof inspectorPromises.open, "function");
});
Deno.test("[node/inspector/promises] - Session constructor should not throw", () => {
new SessionPromise();
});