Skip to content

Instantly share code, notes, and snippets.

Last active March 24, 2016 14:05
What would you like to do?
Manual Sinon sandboxes
describe('something', function() {
var sandbox;
beforeEach(function() {
sandbox = sinon.sandbox.create();
afterEach(function() {
it('should do something with stubs', function() {
var someStub = sandbox.stub(thing, 'something');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment