import React from "react";
import ReactTestUtils from "react-addons-test-utils";

import MenuScreen from "src/components/MenuScreen/MenuScreen.js";

describe("MenuScreen", () => {

  it("should exist", () => {
    MenuScreen.should.exist;
  });

  it("should be react element", () => {
    ReactTestUtils.isElement(<MenuScreen />).should.be.ok;
  });

});

@@ -73,16 +73,49 @@
 -utils%22;
+%0Aimport jsdom from %22mocha-jsdom%22;
 %0A%0Aimport
@@ -173,16 +173,328 @@
 een.js%22;
+%0Aimport Button from %22src/components/Shared/Button.js%22;%0A%0Aimport setCurrentScreenAction from %22src/actions/ScreenActions.js%22;%0Aimport %7B GAME_SCREEN %7D from %22src/actions/ScreenActions.js%22;%0A%0Aimport %7BsetGameModeAction%7D from %22src/actions/GameActions.js%22;%0Aimport %7BVS_HUMAN, EASY, MEDIUM, HARD%7D from %22src/reducers/Game.js%22;
 %0A%0Adescri
@@ -519,16 +519,28 @@
 ) =%3E %7B%0A%0A
+  jsdom();%0A%0A
   it(%22sh
@@ -632,24 +632,24 @@
 t%22, () =%3E %7B%0A
-
     ReactTes
@@ -702,12 +702,917 @@
 %0A  %7D);%0A%0A
+  describe(%22Buttons%22, () =%3E %7B%0A%0A    let actions = %5B%5D,%0A        dispatch = (action) =%3E actions.push(action),%0A        gameModes = %5BVS_HUMAN, EASY, MEDIUM, HARD%5D;%0A%0A    function testButtonNumber(i) %7B%0A      it(%22Button should dispatch proper actions on click%22, () =%3E %7B%0A        const menuScreen = ReactTestUtils.renderIntoDocument(%0A          %3CMenuScreen dispatch=%7Bdispatch%7D /%3E%0A        );%0A        var buttons = ReactTestUtils.scryRenderedComponentsWithType(%0A            menuScreen,%0A            Button%0A          );%0A        var node = ReactTestUtils%0A            .findRenderedDOMComponentWithTag(buttons%5Bi%5D, %22button%22);%0A%0A        ReactTestUtils.Simulate.click(node);%0A%0A        actions%5B0%5D.should.be.eql(setCurrentScreenAction(GAME_SCREEN));%0A        actions%5B1%5D.should.be.eql(setGameModeAction(gameModes%5Bi%5D));%0A        actions = %5B%5D;%0A      %7D);%0A    %7D%0A%0A    for (let i = 0; i %3C 4; i++) %7B%0A      testButtonNumber(i);%0A    %7D%0A%0A  %7D);%0A%0A
 %7D);%0A

Add tests for menu buttons