/*global describe, it, before, beforeEach, after, afterEach */
import React from 'react';
import { configure, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-15';

import { _Header_ } from './index';

configure({ adapter: new Adapter() });

beforeEach(() => {
    global.$STM_Config = {};
});

describe('Header', () => {
    it('contains class .header', () => {
        global.$STM_Config = { read_only_mode: false };
        expect(shallow(<_Header_ pathname={'whatever'} />).is('.Header')).toBe(
            true
        );
    });
});

@@ -442,15 +442,23 @@
     
-expect(
+const header = 
 shal
@@ -500,23 +500,62 @@
  /%3E)
-.is('.H
+;%0A        console.log(header.closest('header.h
 eader'))
 .toB
@@ -554,14 +554,9 @@
 r'))
-.toBe(
+;
 %0A   
@@ -564,25 +564,61 @@
     
-    true%0A        
+expect(header.closest('header.header').length).toBe(1
 );%0A 

Fix failing test