jest.unmock('../Header');

import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { Header } from '../Header';

xdescribe('Header', () => {

    it('should have title', () => {
        const container = <Header name="test title" />;
        const DOM = TestUtils.renderIntoDocument(container);
        const title = TestUtils.findRenderedDOMComponentWithTag(
            DOM, 'h1');

        expect(title.textContent).toEqual('test title');
    });

    it('should have only one h1', () => {
        const container = <Header name="title" />;
        const DOM = TestUtils.renderIntoDocument(container);
        const title = TestUtils.scryRenderedDOMComponentsWithTag(
            DOM, 'h1');

        expect(title.length).toEqual(1);
    });
});

@@ -1,31 +1,4 @@
-jest.unmock('../Header');%0A%0A
 impo
@@ -15,15 +15,15 @@
 rom 
-'
+%22
 react
-'
+%22
 ;%0Aim
@@ -31,48 +31,31 @@
 ort 
-TestUtils from 'react-addons-test-utils'
+Header from %22../Header%22
 ;%0Aim
@@ -65,22 +65,23 @@
 t %7B 
-Header
+shallow
  %7D from 
 '../
@@ -80,23 +80,19 @@
 rom 
-'../Header'
+%22enzyme%22
 ;%0A%0A
-x
 desc
@@ -113,16 +113,33 @@
  () =%3E %7B
+%0A    let wrapper;
 %0A%0A    it
@@ -152,16 +152,21 @@
 ld have 
+only 
 title', 
@@ -191,48 +191,102 @@
 nst 
-container = %3CHeader name=%22test title%22
+props = %7B%0A            name: 'name'%0A        %7D;%0A        wrapper = shallow(%3CHeader %7B...props%7D
  /%3E
+)
 ;%0A  
@@ -295,125 +295,201 @@
     
-const DOM = TestUtils.renderIntoDocument(container);%0A        const title = TestUtils.findRenderedDOMComponentWithTag(
+expect(wrapper.find('.breadcrumbs__item').length).toEqual(1);%0A    %7D);%0A%0A    it('should have only header info', () =%3E %7B%0A        const props = %7B%0A            headerInfo: %3CHeader/%3E//TODO mockElement
 %0A   
@@ -493,33 +493,69 @@
         
+%7D;%0A
     
-DOM, 'h1'
+    wrapper = shallow(%3CHeader %7B...props%7D /%3E
 );%0A
-%0A
         
@@ -565,304 +565,355 @@
 ect(
-title.textContent).toEqual('test title');%0A    %7D);%0A%0A    it('should have only one h1', () =%3E %7B%0A        const container = %3CHeader name=%22title%22 /%3E;%0A        const DOM = TestUtils.renderIntoDocument(container);%0A        const title = TestUtils.scryRenderedDOMComponentsWithTag(%0A            DOM, 'h1'
+wrapper.find('.breadcrumbs__item').length).toEqual(1);%0A    %7D);%0A%0A    it('should have both name and header info', () =%3E %7B%0A        const props = %7B%0A            name: 'name',%0A            headerInfo: %3CHeader/%3E//TODO mockElement%0A        %7D;%0A        console.log(wrapper.find('.breadcrumbs__item').length);%0A        wrapper = shallow(%3CHeader %7B...props%7D /%3E
 );%0A
-%0A
     
@@ -923,21 +923,50 @@
  expect(
-title
+wrapper.find('.breadcrumbs__item')
 .length)
@@ -966,32 +966,32 @@
 length).toEqual(
-1
+2
 );%0A    %7D);%0A%7D);%0A
@@ -986,12 +986,13 @@
     %7D);%0A
+%0A
 %7D);%0A

Fix unit tests for Header component