import { Debug } from "mods/Debug";
import { assertInstanceOf } from "@std/assert";
Deno.test("class Debug",
async (t) => {
await t.step("instanceof Map", () => {
assertInstanceOf(new Debug(), Map);
});
await t.step("globalThis.debug instanceof Debug", () => {
const _debug = new Debug();
assertInstanceOf(
// ts-ignore: we create it.
globalThis.debug,
Debug
);
});
}
);
import { Debug } from "mods/Debug";
import { assertInstanceOf } from "@std/assert";
Deno.test("class Debug",
async (t) => {
await t.step("instanceof Map", () => {
assertInstanceOf(new Debug(), Map);
});
await t.step("globalThis.debug instanceof Debug", () => {
const _debug = new Debug();
assertInstanceOf(
// ts-ignore: we create it.
globalThis.debug,
Debug
);
});
}
);