* 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)
| 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. |
no outgoing calls
no test coverage detected