闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
322 B

  1. import { JSDOM } from 'jsdom';
  2. import chai from 'chai';
  3. import chaiEnzyme from 'chai-enzyme';
  4. chai.use(chaiEnzyme());
  5. const { window } = new JSDOM('', {
  6. userAgent: 'node.js',
  7. });
  8. Object.keys(window).forEach(property => {
  9. if (typeof global[property] === 'undefined') {
  10. global[property] = window[property];
  11. }
  12. });