Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method FakeTime.restoreFor
import { FakeTime } from "https://deno.land/std@0.220.1/testing/time.ts";

Restores real time temporarily until callback returns and resolves.

Parameters

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

Returns

Promise<T>