deno.land / std@0.224.0 / log / critical_test.ts
1234567891011// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assertEquals } from "../assert/assert_equals.ts";import { critical } from "./critical.ts";
Deno.test("critical()", () => { const criticalData: string = critical("foo"); const criticalResolver: string | undefined = critical(() => "bar"); assertEquals(criticalData, "foo"); assertEquals(criticalResolver, "bar");});
Version Info