Skip to content

Commit

Permalink
fix(runToLastAsync): tick the correct amount of time
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeduboc authored and fatso83 committed Nov 21, 2022
1 parent bf302bd commit bb28fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fake-timers-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ function withGlobal(_global) {
resolve(clock.now);
}

resolve(clock.tickAsync(timer.callAt));
resolve(clock.tickAsync(timer.callAt - clock.now));
} catch (e) {
reject(e);
}
Expand Down

0 comments on commit bb28fea

Please sign in to comment.