blob: 82e29e1c1e964e89a06cab2277403cf1d0608ef5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import { Header } from 'src/common/header/header';
describe('Header', () => {
let header;
beforeEach(() => {
const mockTranslations = key => key;
header = shallow(<Header t={mockTranslations} />);
});
it('renders the header content', () => {
expect(header.find('header').text()).toContain('logout');
});
});
|