Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
now
configurable so time can freeze during backburner run loop
This allow us to use fake timers, such as `sinon.useFakeTimers`, to check the state of the app during the run loop. For example: if a popup is supposed to be triggered in X ms from now and it will show to the user during Y ms, then this will allow us to use fake timers to pause between X and Y and check the state of the Ember app at that exact time. This is related with BackburnerJS#263, BackburnerJS#179 and BackburnerJS#166. If someone needs to have the backburner clock separate from the global stubbed clock (as explained in BackburnerJS#179), then `_platform.now` config should be used to pass the native `Date.now` function.
- Loading branch information