Skip to main content
Go to Latest
method FakeTime.restoreFor
import { FakeTime } from "https://deno.land/std@0.157.0/testing/time.ts";

Restores real time temporarily until callback returns and resolves.

Parameters

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

Returns

Promise<T>