HeldCall
A promise that settles when a test says so. Used by the fakes' deferred mode so latency is driven by the test, never by a timer.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { HeldCall } from "@mapcairn/core";
interface HeldCall<T>
Type parameters
T
Methods
reject
reject(error: Error): void;
Fails the held call.
error(Error)
resolve
resolve(value: T): void;
Completes the held call successfully.
value(T)