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

x/deno/cli/js/test_util.ts>assert

A modern runtime for JavaScript and TypeScript.
Go to Latest
function assert
Re-export
import { assert } from "https://deno.land/x/deno@v0.30.0/cli/js/test_util.ts";

Make an assertion, if not true, then throw.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr