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