2017-06-29 04:03:03 -07:00
|
|
|
import { JSDOM } from 'jsdom';
|
2016-10-12 09:06:18 -07:00
|
|
|
import chai from 'chai';
|
|
|
|
import chaiEnzyme from 'chai-enzyme';
|
|
|
|
chai.use(chaiEnzyme());
|
|
|
|
|
2017-06-29 04:03:03 -07:00
|
|
|
const { window } = new JSDOM('', {
|
|
|
|
userAgent: 'node.js',
|
|
|
|
});
|
|
|
|
Object.keys(window).forEach(property => {
|
2016-10-10 13:32:03 -07:00
|
|
|
if (typeof global[property] === 'undefined') {
|
2017-06-29 04:03:03 -07:00
|
|
|
global[property] = window[property];
|
2016-10-10 13:32:03 -07:00
|
|
|
}
|
|
|
|
});
|