fixed comment foradvanceTimersByTime method

This commit is contained in:
knee-cola
2017-11-22 09:24:02 +01:00
committed by GitHub
parent 975bda1663
commit 03bca40577

View File

@@ -145,13 +145,14 @@ declare namespace jest {
*/
function runOnlyPendingTimers(): typeof jest;
/**
* (renamed in Jest 21.3.0+ - use `advanceTimersByTime` instead) Executes only the macro
* (renamed to `advanceTimersByTime` in Jest 21.3.0+) Executes only the macro
* task queue (i.e. all tasks queued by setTimeout() or setInterval() and setImmediate()).
*/
function runTimersToTime(msToRun: number): typeof jest;
/**
* Explicitly supplies the mock object that the module system should return
* for the specified module.
* Advances all timers by msToRun milliseconds. All pending "macro-tasks" that have been
* queued via setTimeout() or setInterval(), and would be executed within this timeframe
* will be executed.
*/
function advanceTimersByTime(msToRun: number): typeof jest;
/**