<commit_before><commit_msg>Add test for MiddleContainer component<commit_after>// component test
import jsdom from "mocha-jsdom";
import React from "react";
import ReactDOM from "react-dom";
import ReactTestUtils from "react-addons-test-utils";

import MiddleContainer from "../src/components/GameScreen/MiddleContainer.js";

describe("Container component", () => {

  jsdom();

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

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

  describe("rendering", () => {

    it("should display child elements in DOM somehow", () => {
      const container = document.createElement("div");
      ReactDOM.render(
        <MiddleContainer>
          <div>
            test
          </div>
        </MiddleContainer>, container);
      container.innerHTML.should.match(/<div.*?>test<\/div>/);
    });

  });

});
{'fraction_non_alphanumeric': 0.1609442060085837, 'fraction_numerical': 0.0, 'mean_word_length': 3.2995391705069124, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2334817', 'n_tokens_mistral': 271, 'n_tokens_neox': 259, 'n_words': 58}