{"size": 457, "ext": "js", "max_stars_repo_path": "src/test/TypeA.test.js", "max_stars_repo_name": "gyeol1212/ListUI", "max_stars_repo_stars_event_min_datetime": "2019-07-22T00:22:36.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-01T00:41:18.000Z", "max_issues_repo_path": "src/test/TypeA.test.js", "max_issues_repo_name": "gyeol1212/ListUI", "max_issues_repo_issues_event_min_datetime": "2020-09-05T02:46:19.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-18T03:15:00.000Z", "max_forks_repo_path": "src/test/TypeA.test.js", "max_forks_repo_name": "gyeol1212/ListUI", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 7, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 19.8695652174, "max_line_length": 64, "alphanum_fraction": 0.5645514223}
import React from 'react';
import { mount } from 'enzyme';

import TypeA from '../containers/TypeA';

describe('Type A', () => {
  let wrapper;
  const itemList = [
    { index: 1 },
    { index: 2 },
    { index: 3 },
    { index: 4 },
    { index: 5 },
  ];

  it('renders Type A', () => {
    wrapper = mount(<TypeA itemList={itemList} />);
    expect(wrapper).toHaveLength(1);

    expect(wrapper.find('ItemA')).toHaveLength(itemList.length);
  });
});
