var sandbox = sinon.sandbox.create(); afterEach(function() { sandbox.restore(); });