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

x/mock/time.ts>FakeTime#next

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

Advances time to when the next scheduled timer is due. If there are no pending timers, time will not be changed. Returns true when there is a scheduled timer and false when there is not.

Returns

boolean