Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mock/time.ts>FakeTime.restoreFor

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

Restores real time temporarily until callback returns and resolves.

Parameters

callback: (...args: any[]) => Promise<T> | T
...args: any[]

Returns

Promise<T>