mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
b649680328
* test(assert): improve test coverage * chore: format * chore: lint * nits --------- Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
15 lines
471 B
TypeScript
15 lines
471 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
import { AssertionError, assertThrows, unimplemented } from "./mod.ts";
|
|
|
|
Deno.test("unimplemented() throws", function () {
|
|
assertThrows(() => unimplemented(), AssertionError, "Unimplemented.");
|
|
});
|
|
|
|
Deno.test("unimplemented() throws with custom message", function () {
|
|
assertThrows(
|
|
() => unimplemented("CUSTOM MESSAGE"),
|
|
AssertionError,
|
|
"Unimplemented: CUSTOM MESSAGE",
|
|
);
|
|
});
|