Thrown when an assertion fails. Extends Deno's built-in AssertionError
so it integrates cleanly with Deno's test runner output.
You rarely construct this directly — assertion methods on Assert
throw it automatically on failure.
Thrown when an assertion fails. Extends Deno's built-in AssertionError
so it integrates cleanly with Deno's test runner output.
You rarely construct this directly — assertion methods on Assert
throw it automatically on failure.
import { AssertionError } from ".";