'use babel';

let {jsdom} = require('jsdom');

global.document = jsdom('<!doctype html><html><body></body></html>');
global.window = document.defaultView;
global.navigator = window.navigator;
global.location = window.location;

describe('MainView', () => {
  let React;
  // let ReactDOM;
  let ReactTestUtils;

  before(() => {
    React = require('react');
    // ReactDOM = require('react-dom');
    ReactTestUtils = require('react-addons-test-utils');
  });

  it('should be display MainView', () => {
    const Main = require('../../app/views/Main');
    let component = ReactTestUtils.renderIntoDocument(<Main />);
  });

});

@@ -38,16 +38,56 @@
 jsdom');
+%0Aconst assert = require('power-assert');
 %0A%0Aglobal
@@ -304,19 +304,16 @@
 React;%0A 
- //
  let Rea
@@ -396,11 +396,8 @@
 %0A   
- //
  Rea
@@ -507,11 +507,8 @@
 uld 
-be 
 disp
@@ -588,17 +588,25 @@
     let 
-c
+renderedC
 omponent
@@ -653,16 +653,218 @@
 in /%3E);%0A
+    let component  = ReactTestUtils.findRenderedDOMComponentWithClass(renderedComponent, 'MainView');%0A    let node = ReactDOM.findDOMNode(component);%0A    assert(node.getAttribute('class'), 'MainView');%0A
   %7D);%0A%0A%7D

Add test of main view