timer-ref
v1.0.0
Published
Save timer references to avoid interfering
Readme
timer-ref
Usage
Modules like sinon and
timekeeper can modify Date and timers
which can lead to problems, if you are, for example, building a test
runner. This modules simply caches the original
objects, so you can use them even after modified.
In order to be effective, require this module as early as possible.
DatesetTimeoutclearTimeoutsetIntervalclearInterval
Tests
$ npm install
$ npm testAuthors
License
The MIT License (see LICENSE)
