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