import { FakeTimer } from "https://deno.land/x/unitest@v1.0.0-beta.82/mod.ts";
custom fake timer
Constructors
new
FakeTimer(clock: InstalledClock)Properties
private
clock: InstalledClockMethods
runAllTimers(): this
Exhausts both the macro-task queue and the micro-task queue.
useRealTimer(): void
Replaces the standard timer function. It must be called in any test using
useFakeTimer
.