deno.land / std@0.224.0 / assert / fail_test.ts
1234567891011121314// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { AssertionError, assertThrows, fail } from "./mod.ts";
Deno.test("AssertFail", function () { assertThrows(fail, AssertionError, "Failed assertion."); assertThrows( () => { fail("foo"); }, AssertionError, "Failed assertion: foo", );});
Version Info