Skip to main content
Deno 2 is finally 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.28.0/cli/js/test_util.ts";

Make an assertion, if not true, then throw.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr