mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
feat(std/node): add basic asserts (#7091)
This commit is contained in:
parent
36c2855932
commit
b21a7b0fd0
1 changed files with 15 additions and 0 deletions
15
std/node/assert.ts
Normal file
15
std/node/assert.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import {
|
||||
assertEquals,
|
||||
assertNotEquals,
|
||||
assertStrictEquals,
|
||||
assertMatch,
|
||||
assertThrows,
|
||||
} from "../testing/asserts.ts";
|
||||
|
||||
export { assert, fail } from "../testing/asserts.ts";
|
||||
|
||||
export const equal = assertEquals;
|
||||
export const notEqual = assertNotEquals;
|
||||
export const strictEqual = assertStrictEquals;
|
||||
export const match = assertMatch;
|
||||
export const throws = assertThrows;
|
Loading…
Add table
Reference in a new issue