Skip to main content
Module

x/better_iterators/tests/helpers.ts

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

Functions

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that error is an Error. If not then an error will be thrown. An error class and a string that should be included in the error message can also be asserted.

Executes a function, expecting it to throw. If it does not, then it throws.

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

Resolve a Promise after a given amount of milliseconds.