Skip to content

vesln/timer-ref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version Build Status Dependencies Dev Dependencies

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.

  • Date
  • setTimeout
  • clearTimeout
  • setInterval
  • clearInterval

Tests

$ npm install
$ npm test

Authors

License

The MIT License (see LICENSE)

About

Saves timer references to avoid interfering

Resources

License

Stars

Watchers

Forks

Packages

No packages published