deno.land / std@0.224.0 / log / debug_test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assertEquals } from "../assert/assert_equals.ts";import "./setup.ts";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);});
std

Version Info

Tagged at
3 weeks ago