{"size": 745, "ext": "js", "max_stars_repo_path": "client/tests/components/headers/IndexHeader.spec.js", "max_stars_repo_name": "johadi/PostIt", "max_stars_repo_stars_event_min_datetime": "2019-01-14T22:34:23.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-31T16:55:38.000Z", "max_issues_repo_path": "client/tests/components/headers/IndexHeader.spec.js", "max_issues_repo_name": "johadi10/PostIt", "max_issues_repo_issues_event_min_datetime": "2017-07-22T11:12:42.000Z", "max_issues_repo_issues_event_max_datetime": "2018-04-05T15:07:49.000Z", "max_forks_repo_path": "client/tests/components/headers/IndexHeader.spec.js", "max_forks_repo_name": "johadi/PostIt", "max_forks_repo_forks_event_min_datetime": "2017-08-10T12:28:04.000Z", "max_forks_repo_forks_event_max_datetime": "2017-11-13T23:21:54.000Z"}
{"max_stars_count": 2, "max_issues_count": 14, "max_forks_count": 5, "avg_line_length": 29.8, "max_line_length": 70, "alphanum_fraction": 0.6241610738}
import 'babel-polyfill';
import React from 'react';
import expect from 'expect';
import { mount } from 'enzyme';
import IndexHeader from '../../../src/components/headers/IndexHeader';

const wrapper = mount(<IndexHeader/>);
describe('<IndexHeader/>', () => {
  it('should check the div with masthead class exists', () => {
    expect(wrapper.find('.masthead').length).toBe(1);
  });

  it('should check the Home link exists', () => {
    expect(wrapper.find('IndexLink').text()).toBe('Home');
  });

  it('should check the Login link exists', () => {
    expect(wrapper.find('Link').at(1).text()).toBe('Login');
  });

  it('should check the Sign up link exists', () => {
    expect(wrapper.find('Link').at(2).text()).toBe('Sign up');
  });
});
