File size: 565 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import renderNameComponent from '../src/06-RenderComponent.js';

describe("06 - RenderComponent", () => {

  beforeEach( () => {
    renderNameComponent(document.body);
  });

  describe("Task #1 - render Name component", () => {
    it('There should be a rendered React component', () => {
      var element = document.getElementById('hello');
      assert.notEqual(element, null, "There should be a paragraph with id `hello` rendered on site.");
      assert.equal(element.innerHTML, "Bazinga!", "Rendered paragraph should contain `Bazinga!`");
    });
  });
});