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

x/dex/lib/deps/testing/asserts.ts>assertThrowsAsync

Dex: An SQL query builder port of Knex for Deno
Latest
function assertThrowsAsync
import { assertThrowsAsync } from "https://deno.land/x/dex@1.0.2/lib/deps/testing/asserts.ts";

Parameters

fn: () => Promise<void>
optional
ErrorClass: Constructor
optional
msgIncludes = [UNSUPPORTED]
optional
msg: string

Returns

Promise<Error>