Skip to content

Commit

Permalink
Remove negative time node
Browse files Browse the repository at this point in the history
Unsupported since lolex@3
  • Loading branch information
dominykas authored and mroderick committed Dec 31, 2019
1 parent f5563ad commit 35e4d55
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/release-source/release/fake-timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ Tick the clock ahead `time` milliseconds.

Causes all timers scheduled within the affected time range to be called. `time` may be the number of milliseconds to advance the clock by or a human-readable string. Valid string formats are "08" for eight seconds, "01:00" for one minute and "02:34:10" for two hours, 34 minutes and ten seconds.

`time` may be negative, which causes the clock to change but won't fire any callbacks.

The `tickAsync()` will also break the event loop, allowing any scheduled promise callbacks to execute _before_ running the timers.

#### `clock.next();` / `await clock.nextAsync()`
Expand Down

0 comments on commit 35e4d55

Please sign in to comment.