{"size": 1147, "ext": "js", "max_stars_repo_path": "react/PartnerSites/PartnerSites.test.js", "max_stars_repo_name": "FastNinja/seek-style-guide", "max_stars_repo_stars_event_min_datetime": "2017-01-13T04:23:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-31T03:16:59.000Z", "max_issues_repo_path": "react/PartnerSites/PartnerSites.test.js", "max_issues_repo_name": "FastNinja/seek-style-guide", "max_issues_repo_issues_event_min_datetime": "2017-01-13T01:09:49.000Z", "max_issues_repo_issues_event_max_datetime": "2020-07-29T00:05:36.000Z", "max_forks_repo_path": "react/PartnerSites/PartnerSites.test.js", "max_forks_repo_name": "FastNinja/seek-style-guide", "max_forks_repo_forks_event_min_datetime": "2017-02-13T05:31:19.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-31T03:16:59.000Z"}
{"max_stars_count": 304, "max_issues_count": 279, "max_forks_count": 64, "avg_line_length": 26.6744186047, "max_line_length": 72, "alphanum_fraction": 0.6006974717}
import React from 'react';
import { render } from 'enzyme';

import PartnerSites from './PartnerSites';

const renderPartnerSites = props => render(<PartnerSites {...props} />);

describe('Header:', () => {
  const links = {
    AU: {
      'data-analytics': 'header:au+employer',
      href: 'https://talent.seek.com.au',
      title: 'SEEK Employer Australia',
      children: 'AU'
    },
    NZ: {
      'data-analytics': 'header:nz+employer',
      href: 'https://talent.seek.co.nz',
      title: 'SEEK Employer New Zealand',
      children: 'NZ'
    }
  };
  it('should render with locale of AU', () => {
    expect(renderPartnerSites({ locale: 'AU' })).toMatchSnapshot();
  });

  it('should render with locale of NZ', () => {
    expect(renderPartnerSites({ locale: 'NZ' })).toMatchSnapshot();
  });

  it('should render with overridden AU Locale link', () => {
    expect(
      renderPartnerSites({ locale: 'NZ', localeLinks: links })
    ).toMatchSnapshot();
  });

  it('should render with overridden NZ Locale link', () => {
    expect(
      renderPartnerSites({ locale: 'AU', localeLinks: links })
    ).toMatchSnapshot();
  });
});
