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
Latest
import * as betterIterators from "https://deno.land/x/better_iterators@v1.5.0/tests/helpers.ts";

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

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.