Skip to main content
Module

x/mock/callbacks.ts

Utilities to help mock behavior, spy on function calls, stub methods, and fake time for tests.
Very Popular
Latest
import * as mock from "https://deno.land/x/mock@0.15.2/callbacks.ts";

Functions

Creates a function that resolves the awaited iterable values. Any awaited iterable values that are errors will be thrown.

Creates a function that returns one of its arguments.

Creates a function that returns its arguments or a subset of them. If end is specified, it will return arguments up to but not including the end.

Creates a function that returns the iterable values. Any iterable values that are errors will be thrown.

Creates a function that returns the instance the method was called on.