Performs certain actions inside a Sinon sandbox
var sandbox = require('sinon-in-sandbox')
sandbox((sinon) => {
// use sinon here. it'll automatically be cleaned up afterwards.
})
sinon-in-sandbox © 2016+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz