sinon-restore

1.0.1 • Public • Published

sinon-restore

This package simply adds restoreAll() to sinon.

Usage:

var sinon = require('sinon-restore');
// use sinon as usual

// restore all fakes when ready...
sinon.restoreAll()

sinon also has sandboxing (http://sinonjs.org/docs/#sandbox) which also solves this problem, but I personally didn't like the syntax.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    14
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    14
  • 1.0.0
    5

Package Sidebar

Install

npm i sinon-restore

Weekly Downloads

13

Version

1.0.1

License

MIT

Last publish

Collaborators

  • cainus