text: /*
  
  Inject a document into the global scope, so jQuery can work in tests
  
  From http://airbnb.io/enzyme/docs/guides/jsdom.html
  
  */
  
  const {JSDOM} = require('jsdom');
  const jsdom = new JSDOM('<!doctype html><html><body></body></html>');
  const {window} = jsdom;
  
  /** Copy all top level properts from src to target object . */
  function copyProps(src, target) {
    const props = Object.getOwnPropertyNames(src)
      .filter(prop => typeof target[prop] === 'undefined')
      .map(prop => Object.getOwnPropertyDescriptor(src, prop));
    Object.defineProperties(target, props);
  }
  
  global.window = window;
  global.document = window.document;
  global.navigator = {
    userAgent: 'node.js'
  };
  copyProps(window, global);
  