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

warn_test.ts
View Documentation
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 { warn } from "./warn.ts";
Deno.test("warn()", () => { const sym = Symbol("a"); const warnData: symbol = warn(sym); const warnResolver: null | undefined = warn(() => null); assertEquals(warnData, sym); assertEquals(warnResolver, null);});
std

Version Info

Tagged at
6 months ago