summaryrefslogtreecommitdiff
path: root/web-ui/src/common/header/header.spec.js
blob: 81a952c7f104e5b884a0c579fceb5bc7467f6548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import { Header } from 'src/common/header/header';
import Logout from 'src/common/logout/logout';

describe('Header', () => {
  let header;

  beforeEach(() => {
    header = shallow(<Header />);
  });

  it('renders the header containing the logout button', () => {
    expect(header.find('header').find(Logout)).toExist();
  });

  it('renders the header pixelated logo', () => {
    expect(header.find('header').find('img').props().alt).toEqual('Pixelated');
  });
});