Make wait() compatible with global setTimeout stub

This issue has been tracked since 2016-09-21.

Many stubbing libraries (SinonJS in particular) provide a handy way to stub out built in date and timers. In Sinon this is sinon.useFakeTimers(). However, since the wait() function internally uses setTimeout, you have to manually increment the clock in order to get the wait() callback to fire, which is annoying.

More Details About Repo
Owner Name axios
Repo Name moxios
Full Name axios/moxios
Language JavaScript
Created Date 2016-05-25
Updated Date 2022-12-05
Star Count 1386
Watcher Count 20
Fork Count 85
Issue Count 19

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date