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

x/cliffy/packages/command/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://deno.land/x/cliffy@v0.5.0/packages/command/test/lib/assert.ts";

Parameters

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

Returns

Promise<Error>