Module

std/testing/asserts.ts>assert

Deno standard library
Go to Latest
function assert
import { assert } from "https://dotland.deno.dev/std@0.36.0/testing/asserts.ts";

Make an assertion, if not true, then throw.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr