// component test
import jsdom from "mocha-jsdom";
import assert from "assert";
import React from "react";
import ReactDOM from "react-dom";
import ReactTestUtils from "react-addons-test-utils";

import HelloWorld from "../src/components/HelloWorld.jsx";

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

  jsdom();

  it("should exist", () => {
    assert.ok( !!HelloWorld );
  });

  it("should be react element", () => {
    assert.ok( ReactTestUtils.isElement(<HelloWorld />),
      "is not a react element" );
  });

  describe("rendering", () => {

    it("should display 'text' prop in DOM somehow", () => {
      const container = document.createElement("div");
      ReactDOM.render(<HelloWorld text="TEST" />, container);
      assert.ok( /TEST/.test(container.innerHTML), "It don't displays 'text' prop in DOM");
    });

  });

});

@@ -340,33 +340,35 @@
     
-assert.ok( !!HelloWorld )
+expect(HelloWorld).to.exist
 ;%0A  
@@ -415,27 +415,16 @@
 =%3E %7B%0A   
- assert.ok(
  ReactTe
@@ -460,42 +460,21 @@
  /%3E)
-,%0A      %22is not a react element%22 )
+.should.be.ok
 ;%0A  
@@ -698,90 +698,48 @@
     
-assert.ok( /TEST/.test(container.innerHTML), %22It don't displays 'text' prop in DOM
+container.innerHTML.should.contain(%22TEST
 %22);%0A

Rewrite test cases to chai