deno.land / std@0.224.0 / log / error_test.ts
1234567891011// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assertEquals } from "../assert/assert_equals.ts";import { error } from "./error.ts";
Deno.test("error()", () => { const errorData: undefined = error(undefined, 1, 2, 3); const errorResolver: bigint | undefined = error(() => 5n); assertEquals(errorData, undefined); assertEquals(errorResolver, 5n);});
Version Info