Skip to main content
Go to Latest
function assertThrowsAsync
import { assertThrowsAsync } from "https://deno.land/std@0.57.0/testing/asserts.ts";

Type Parameters

optional
T = void

Parameters

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

Returns

Promise<Error>