1
0
Fork 0
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:
Benjamin Lupton 2020-08-19 04:15:59 +10:00 committed by GitHub
parent 36c2855932
commit b21a7b0fd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
std/node/assert.ts Normal file
View 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;