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

x/denoexec/deps.ts>testing.assert

A higher level wrapper around https://doc.deno.land/builtin/stable#Deno.run
Latest
function testing.assert
import { testing } from "https://deno.land/x/denoexec@v1.1.5/deps.ts";
const { assert } = testing;

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

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr