summaryrefslogtreecommitdiff
path: root/std/node/assert.ts
diff options
context:
space:
mode:
authorBenjamin Lupton <b@lupton.cc>2020-08-19 04:15:59 +1000
committerGitHub <noreply@github.com>2020-08-18 14:15:59 -0400
commitb21a7b0fd0969c8697833d549809bdd1c9edc93b (patch)
tree1d9359aae5f9b4261b971b18530b66a2e4d387c7 /std/node/assert.ts
parent36c2855932bdd6b05e93acc8d33df452d9d62fcd (diff)
feat(std/node): add basic asserts (#7091)
Diffstat (limited to 'std/node/assert.ts')
-rw-r--r--std/node/assert.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/std/node/assert.ts b/std/node/assert.ts
new file mode 100644
index 000000000..97721211f
--- /dev/null
+++ b/std/node/assert.ts
@@ -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;