Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
A library of assertion functions.
If the assertion is false an AssertionError will be thrown which will
result in pretty-printed diff of failing assertion.
This module is browser compatible, but do not rely on good formatting of values for AssertionError messages in browsers.
Add Package
deno add jsr:@std/assert
Import symbol
import * as assert from "@std/assert";
Import directly with a jsr specifier
import * as assert from "jsr:@std/assert";