summaryrefslogtreecommitdiff
path: root/std/node/assert_test.ts
diff options
context:
space:
mode:
authorSchwarzkopf Balázs <schwarzkopfb@icloud.com>2020-09-14 16:22:07 +0200
committerGitHub <noreply@github.com>2020-09-14 16:22:07 +0200
commitf6bfdd66a69fb01077e488b5a67a38ca3d43610e (patch)
treeb2613d944f83bfdc2d17691494d87ca839ed4f30 /std/node/assert_test.ts
parenta6f34d47222ad7cc40519bd95a58ae773d1fe656 (diff)
feat(std/node): Add AssertionError class (#7210)
Diffstat (limited to 'std/node/assert_test.ts')
-rw-r--r--std/node/assert_test.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/std/node/assert_test.ts b/std/node/assert_test.ts
index 8df13187b..9d38ca56b 100644
--- a/std/node/assert_test.ts
+++ b/std/node/assert_test.ts
@@ -9,9 +9,9 @@ import {
fail as denoFail,
} from "../testing/asserts.ts";
-import assert from "./assert.ts";
+import AssertionError from "./assertion_error.ts";
-import {
+import assert, {
ok,
assert as assert_,
deepStrictEqual,
@@ -21,6 +21,7 @@ import {
match,
throws,
fail,
+ AssertionError as AssertionError_,
} from "./assert.ts";
Deno.test("API should be exposed", () => {
@@ -62,4 +63,9 @@ Deno.test("API should be exposed", () => {
"`assertThrows()` should be exposed as `throws()`",
);
assertStrictEquals(fail, denoFail, "`fail()` should be exposed");
+ assertStrictEquals(
+ AssertionError,
+ AssertionError_,
+ "`AssertionError()` constructor should be exposed",
+ );
});