deno.land / std@0.224.0 / assert / unimplemented_test.ts
123456789101112131415// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assert, AssertionError, unimplemented } from "./mod.ts";
Deno.test("AssertsUnimplemented", function () { let didThrow = false; try { unimplemented(); } catch (e) { assert(e instanceof AssertionError); assert(e.message === "Unimplemented."); didThrow = true; } assert(didThrow);});
Version Info