std/log/debug_test.ts
Asher Gomez 2774a070d6
fix(log): ensure consistent behavior with @std/log (#5974)
* fix(log): ensure consistent behavior with `@std/log`

* update

* fixes
2024-09-27 10:57:14 +09:00

11 lines
371 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "@std/assert";
import { debug } from "./debug.ts";
Deno.test("debug()", () => {
const debugData: string = debug("foo");
const debugResolver: string | undefined = debug(() => "foo");
assertEquals(debugData, "foo");
assertEquals(debugResolver, undefined);
});