Module

x/cliffy/packages/prompt/test/lib/assert.ts>assertThrowsAsync

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function assertThrowsAsync
import { assertThrowsAsync } from "https://dotland.deno.dev/x/cliffy@v0.6.1/packages/prompt/test/lib/assert.ts";

Parameters

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

Returns

Promise<Error>