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

Parameters

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

Returns

Promise<Error>