mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
2774a070d6
* fix(log): ensure consistent behavior with `@std/log` * update * fixes
11 lines
371 B
TypeScript
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);
|
|
});
|