You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
497 B
25 lines
497 B
3 years ago
|
/* eslint-disable func-names */
|
||
|
/* eslint-disable mocha/no-top-level-hooks */
|
||
|
import { URLSearchParams } from 'url'
|
||
|
|
||
|
import chai from 'chai'
|
||
|
import sinonChai from 'sinon-chai'
|
||
|
import sinon from 'sinon'
|
||
|
import jsdom from 'jsdom-global'
|
||
|
|
||
|
process.env.NODE_ENV = 'test'
|
||
|
|
||
|
chai.use(sinonChai)
|
||
|
|
||
|
global.expect = chai.expect
|
||
|
global.URLSearchParams = URLSearchParams
|
||
|
|
||
|
beforeEach(function () {
|
||
|
this.sinon = sinon.createSandbox()
|
||
|
this.jsdom = jsdom()
|
||
|
})
|
||
|
|
||
|
afterEach(function () {
|
||
|
this.sinon.restore()
|
||
|
})
|