{"size": 488, "ext": "js", "max_stars_repo_path": "packages/strapi-plugin-content-type-builder/admin/src/containers/RelationForm/tests/RelationBox.test.js", "max_stars_repo_name": "mhelmetag/strapi", "max_stars_repo_stars_event_min_datetime": "2020-01-07T04:30:05.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-22T08:36:46.000Z", "max_issues_repo_path": "packages/strapi-plugin-content-type-builder/admin/src/containers/RelationForm/tests/RelationBox.test.js", "max_issues_repo_name": "mhelmetag/strapi", "max_issues_repo_issues_event_min_datetime": "2020-07-19T07:21:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T23:12:53.000Z", "max_forks_repo_path": "packages/strapi-plugin-content-type-builder/admin/src/containers/RelationForm/tests/RelationBox.test.js", "max_forks_repo_name": "mhelmetag/strapi", "max_forks_repo_forks_event_min_datetime": "2020-06-19T07:29:54.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-13T09:52:15.000Z"}
{"max_stars_count": 7, "max_issues_count": 15, "max_forks_count": 4, "avg_line_length": 20.3333333333, "max_line_length": 43, "alphanum_fraction": 0.5594262295}
import React from 'react';
import { shallow } from 'enzyme';

import RelationBox from '../RelationBox';

describe('<RelationBox />', () => {
  it('should not crash', () => {
    const props = {
      onChange: jest.fn(),
      value: '',
    };
    shallow(<RelationBox {...props} />);
  });

  it('should use the defaultProps', () => {
    const {
      defaultProps: { onClick },
    } = RelationBox;

    expect(onClick).toBeDefined();
    expect(onClick()).toBe(undefined);
  });
});
