Skip to main content
Latest
import * as jwfetch from "https://deno.land/x/jwfetch@v1.3.1/test_deps.ts";

Variables

Replace window.fetch with a mock that routes requests to a matching handler.

Mock a new route, or override an existing handler.

This is the function that replaces fetch when you call install().

Remove an existing route handler.

Remove all existing route handlers.

Restore window.fetch to what it was before install() was called.

Functions

Run some shared teardown after each test in the suite.

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.

Executes a function which returns a promise, expecting it to reject.

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

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

Run some shared setup before each test in the suite.

Registers a test suite.

Registers an individual test case.

Create a stateful version of the global functions that do not contain any global state.

Use this to assert unreachable code.

Interfaces

Registers a test suite.

Registers an individual test case.