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

x/deno_nest/test_deps.ts>assert

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
function assert
import { assert } from "https://deno.land/x/deno_nest@v3.3.1/test_deps.ts";

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

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr