Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/std/testing/asserts.ts>assert

A modern runtime for JavaScript and TypeScript.
Go to Latest
function assert
import { assert } from "https://deno.land/x/deno@v1.0.0/std/testing/asserts.ts";

Make an assertion, if not true, then throw.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr