2024-08-14 14:33:42 +02:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2024-08-14 15:34:24 +02:00
|
|
|
import inspector, { Session } from "node:inspector";
|
2024-12-31 18:06:21 +08:00
|
|
|
import inspectorPromises, {
|
|
|
|
Session as SessionPromise,
|
|
|
|
} from "node:inspector/promises";
|
2024-08-14 14:33:42 +02:00
|
|
|
import { assertEquals } from "@std/assert/equals";
|
|
|
|
|
|
|
|
Deno.test("[node/inspector] - importing inspector works", () => {
|
|
|
|
assertEquals(typeof inspector.open, "function");
|
|
|
|
});
|
2024-08-14 15:34:24 +02:00
|
|
|
|
|
|
|
Deno.test("[node/inspector] - Session constructor should not throw", () => {
|
|
|
|
new Session();
|
|
|
|
});
|
2024-12-31 18:06:21 +08:00
|
|
|
|
|
|
|
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();
|
|
|
|
});
|