Skip to main content
Module

x/better_iterators/tests/helpers.ts>assertThrowsAsync

Chainable iterators (sync and async) for TypeScript, with support for opt-in, bounded parallelism
Go to Latest
function assertThrowsAsync
import { assertThrowsAsync } from "https://deno.land/x/better_iterators@v1.2.1/tests/helpers.ts";

Oddly, Deno's assertThrows doesn't work for async.

Parameters

fn: () => void

Returns

Promise<unknown>