sinonjs / fake-timers

Fake setTimeout and friends (collectively known as "timers"). Useful in your JavaScript tests. Extracted from Sinon.JS
BSD 3-Clause "New" or "Revised" License
794 stars 103 forks source link

add failing test for issue 432 #433

Closed mansona closed 9 months ago

mansona commented 2 years ago

Purpose (TL;DR)

This shows a failing test for the scenario described in #432

fatso83 commented 9 months ago

As mentioned in https://github.com/sinonjs/fake-timers/issues/432#issuecomment-1159173536, I think dealing with the DOM APIs falls a bit outside the core of what fake-timers should try to do, especially given that there is an easy workaround.

Thanks anyway for taking the time to document what was bugging you. That makes looking into it much nicer.