summaryrefslogtreecommitdiff
path: root/web-ui/src/common/header/header.spec.js
blob: e5004bcc5a0d1e4def7d3c9192e39d835f12c3ab (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');
  });
});