| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1× 1× 1× | const sinon = require('sinon');
const chai = require('chai');
const sinonChai = require('sinon-chai');
before(function() {
chai.use(sinonChai);
});
beforeEach(function() {
this.sandbox = sinon.sandbox.create();
});
afterEach(function() {
this.sandbox.restore();
});
|