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