{"size": 572, "ext": "js", "max_stars_repo_path": "src/tests/Bill.test.js", "max_stars_repo_name": "sensationmm/sky-test", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/tests/Bill.test.js", "max_issues_repo_name": "sensationmm/sky-test", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/tests/Bill.test.js", "max_forks_repo_name": "sensationmm/sky-test", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.6, "max_line_length": 77, "alphanum_fraction": 0.6066433566}
import React from 'react';
import { shallow, mount, render } from 'enzyme';

import Bill from '../components/Bill';

describe('Bill', () => {
  it('Should render', () => {
    expect(shallow(<Bill />).exists()).toBe(true)
  });

  it('Should render dates correctly', () => {
    const wrapper = shallow(<Bill />); 
    expect(wrapper.instance().formatDate('2018-10-06')).toBe('6th Oct 2018');
  });

  it('Should render currencies correctly', () => {
    const wrapper = shallow(<Bill />); 
    expect(wrapper.instance().formatCurrency('110.7')).toBe('£110.70');
  });
});