mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
d102a10235
* refactor: import from `@std/assert` * update
12 lines
377 B
TypeScript
12 lines
377 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
import { assertEquals } from "@std/assert";
|
|
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);
|
|
});
|