Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/std/testing/asserts.ts>assertThrowsAsync

A modern runtime for JavaScript and TypeScript.
Go to Latest
function assertThrowsAsync
import { assertThrowsAsync } from "https://deno.land/x/deno@v1.0.0/std/testing/asserts.ts";

Parameters

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

Returns

Promise<Error>