import sinon from 'sinon'; import chai from 'chai'; beforeEach(function () { this.sandbox = sinon.sandbox.create() }); afterEach(function () { this.sandbox.restore() });