Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade fake timers and others (#2612)
* Upgrade dependencies (includes breaking API in Fake Timers) * fake-timers: no longer creating dates using the original Date class, but a subclass (proxy) * Clarify intent and fix breaking test on global restore This was originally added (really rectified) in commit ac17669 (2013) when Sinon's fake-timers code allowed installing non-standard/unknown timers. Since the latest fake-timers no longer allows this, we have to do the test against a real/existing timer that the library knows about. We supply a custom global to avoid any of the mentioned side effects of trying to delete built-ins in some environments. * Clarify intent and fix breaking test concerning non-inherited timer * fix test: fake-timers now installs all timers by default (including nextTick) * Various micro-fixes in the tests * Exclude Node timers and timers/promises modules from bundle
- Loading branch information