unset-timeout
resets any setTimeout or setInterval between mocha tests
Last updated 4 years ago by refractalize .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install unset-timeout 
SYNC missed versions from official npm registry.

unsetTimeout npm version npm Build Status

Your mocha tests use setTimeout or setInterval? Not sure how to get proper test isolation? Simply put this in your mocha test:

require('unset-timeout');

unsetTimeout will reset all the setTimeout and setInterval calls after each mocha test, so you can be sure that one test doesn't bleed into another.

Current Tags

  • 1.4.0                                ...           latest (4 years ago)

5 Versions

  • 1.4.0                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |