diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-08 22:04:43 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-08 16:04:43 -0500 |
| commit | 831d74e364b634eab4f587f30570e17c8c54c17e (patch) | |
| tree | be309ef55902e552fdd6ad2403c208096e9f4fde /testing/test.ts | |
| parent | 3761d41d32d6e6baffa56adbda380d04ad10e710 (diff) | |
Use AssertionError instead of Error in testing (denoland/deno_std#254)
Original: https://github.com/denoland/deno_std/commit/d4088a1920d005132bce2b0cd948ed74e0250563
Diffstat (limited to 'testing/test.ts')
| -rw-r--r-- | testing/test.ts | 14 |
1 files changed, 1 insertions, 13 deletions
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); |
