import assert from 'assert';
import React  from 'react/addons';
import jsdom  from 'jsdom';
import _      from 'lodash';

global.document  = jsdom.jsdom('<!DOCTYPE html><html><body></body></html>');
global.window    = document.parentWindow;
global.navigator = { userAgent: "Node.JS" };
global.React     = React;
global.assert    = assert;
global._         = _;

import assert from 'assert';
import jsdom  from 'jsdom';

global.document  = jsdom.jsdom('<!DOCTYPE html><html><body></body></html>');
global.window    = document.parentWindow;
global.navigator = { userAgent: "Node.JS" };

import React  from 'react/addons';
import _      from 'lodash';

global.React     = React;
global.assert    = assert;
global._         = _;

Fix error thrown by React testUtils - we required React before setting up `window` and `document`, which caused testUtils to throw error
Fix error thrown by React testUtils - we required React before setting up `window` and `document`, which caused testUtils to throw error
