From f6bfdd66a69fb01077e488b5a67a38ca3d43610e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schwarzkopf=20Bal=C3=A1zs?= Date: Mon, 14 Sep 2020 16:22:07 +0200 Subject: feat(std/node): Add AssertionError class (#7210) --- std/node/assert_test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'std/node/assert_test.ts') 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", + ); }); -- cgit v1.2.3