MCPcopy Create free account
hub / github.com/denoland/std / tick

Method tick

testing/time.ts:658–660  ·  view source on GitHub ↗

* Adds the specified number of milliseconds to the fake time. * This will call any functions waiting to be called between the current and new fake time. * * @example Usage * ```ts * import { * assertSpyCalls, * spy, * } from "@std/testing/mock"; * import { FakeTime } f

(ms = 0)

Source from the content-addressed store, hash-verified

656 * @param ms The milliseconds to advance
657 */
658 tick(ms = 0) {
659 this.now += ms;
660 }
661
662 /**
663 * Runs all pending microtasks then adds the specified number of milliseconds to the fake time.

Calls

no outgoing calls

Tested by

no test coverage detected