// Set up testing enviroment to run like a browser in the command line 


// Build 'renderComponent' helper that should render a given react class


// Build helper for simulating events


// Set up chai-jquery
@@ -1,150 +1,599 @@
-// Set up testing enviroment to run like a browser in the command line %0A%0A%0A// Build 'renderComponent' helper that should render a given react class
+import jsdom from 'jsdom';%0Aimport jquery from 'jquery';%0Aimport TestUtils from 'react-addons-test-utils';%0A%0A// Set up testing enviroment to run like a browser in the command line %0Aglobal.document = jsdom.jsdom('%3C!doctype html%3E%3Chtml%3E%3Cbody%3E%3C/body%3E%3C/html%3E');%0Aglobal.window = global.document.defaultView;%0Aconst $ = _$(global.window);%0A%0A// Build 'renderComponent' helper that should render a given react class%0Afunction renderComponent(ComponentClass) %7B%0A  const componentInstance = TestUtils.renderIntoDocument(%3CComponentClass /%3E);%0A%0A  return $(ReactDOM.findDOMNode(componentInstance)); // produces HTML%0A%7D
 %0A%0A%0A/

Set up running like browser in command line, build renderComponent helper function