Skip to main content
Module

x/fresh/tests/deps.ts

The next-gen web framework.
Extremely Popular
Go to Latest
import * as mod from "https://deno.land/x/fresh@1.1.3/tests/deps.ts";

Classes

Transform a stream into a stream where each chunk is divided by a newline, be it \n or \r\n. \r can be enabled via the allowCR option.

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 actual includes expected. If not then throw.

Creates a retry promise which resolves to the value of the input using exponential backoff. If the input promise throws, it will be retried maxAttempts number of times. It will retry the input every certain amount of milliseconds, starting at minTimeout and multiplying by the multiplier until it reaches the maxTimeout