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