2020-08-28 03:02:50 +00:00
|
|
|
require('jsdom-global')();
|
2020-08-11 23:11:29 +00:00
|
|
|
|
2020-08-15 21:10:03 +00:00
|
|
|
const sourceMapSupport = require('source-map-support');
|
2020-08-11 23:11:29 +00:00
|
|
|
sourceMapSupport.install({
|
|
|
|
environment: 'node',
|
|
|
|
handleUncaughtExceptions: true,
|
|
|
|
hookRequire: true,
|
|
|
|
});
|
|
|
|
|
2020-08-15 21:10:03 +00:00
|
|
|
const chai = require('chai');
|
|
|
|
const chaiPromise = require('chai-as-promised');
|
|
|
|
const chaiSinon = require('sinon-chai');
|
|
|
|
|
|
|
|
chai.use(chaiPromise);
|
|
|
|
chai.use(chaiSinon);
|
|
|
|
|
2020-08-11 23:11:29 +00:00
|
|
|
window.URL.createObjectURL = function () { };
|