Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/merlin/deps.ts>asserts.assert

Testing and Benchmarking framework for deno 🧙‍♂️
Latest
function asserts.assert
import { asserts } from "https://deno.land/x/merlin@v1.0.7/deps.ts";
const { assert } = asserts;

Make an assertion, error will be thrown if expr does not have truthy value.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr