all files / lib/ test-setup.spec.js

33.33% Statements 3/9
100% Branches 0/0
0% Functions 0/3
33.33% Lines 3/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                          
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();
});