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

error_test.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
// 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);});
std

Version Info

Tagged at
6 months ago