2021-07-16 11:18:09 -07:00
|
|
|
global.chai = require('chai')
|
|
|
|
global.chai.use(require('chai-as-promised'))
|
|
|
|
global.expect = global.chai.expect
|
2023-01-23 14:34:06 -08:00
|
|
|
global.should = global.chai.should()
|
|
|
|
global.sinon = require('sinon')
|
|
|
|
|
|
|
|
// Restore the default sandbox after every test
|
|
|
|
exports.mochaHooks = {
|
|
|
|
afterEach() {
|
|
|
|
sinon.restore()
|
|
|
|
}
|
|
|
|
}
|