From 831d74e364b634eab4f587f30570e17c8c54c17e Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Fri, 8 Mar 2019 22:04:43 +0100 Subject: Use AssertionError instead of Error in testing (denoland/deno_std#254) Original: https://github.com/denoland/deno_std/commit/d4088a1920d005132bce2b0cd948ed74e0250563 --- testing/test.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'testing/test.ts') diff --git a/testing/test.ts b/testing/test.ts index 7f904346c..367e28022 100644 --- a/testing/test.ts +++ b/testing/test.ts @@ -5,25 +5,13 @@ import { assertEquals, assertStrictEq, assertThrows, - assertThrowsAsync, - fail + assertThrowsAsync } from "../testing/asserts.ts"; import "./format_test.ts"; import "./diff_test.ts"; import "./pretty_test.ts"; import "./asserts_test.ts"; -test(function testingAssertFail() { - assertThrows(fail, Error, "Failed assertion."); - assertThrows( - () => { - fail("foo"); - }, - Error, - "Failed assertion: foo" - ); -}); - test(function testingAssertEqualActualUncoercable() { let didThrow = false; const a = Object.create(null); -- cgit v1.2.3