{"size": 510, "ext": "js", "max_stars_repo_path": "src/components/Curiosity/Curiosity.test.js", "max_stars_repo_name": "fac-13/EDDIE", "max_stars_repo_stars_event_min_datetime": "2018-06-08T10:48:34.000Z", "max_stars_repo_stars_event_max_datetime": "2018-06-08T10:48:34.000Z", "max_issues_repo_path": "src/components/Curiosity/Curiosity.test.js", "max_issues_repo_name": "fac-13/SBSHS", "max_issues_repo_issues_event_min_datetime": "2018-05-30T10:42:24.000Z", "max_issues_repo_issues_event_max_datetime": "2018-06-17T19:12:59.000Z", "max_forks_repo_path": "src/components/Curiosity/Curiosity.test.js", "max_forks_repo_name": "fac-13/SBSHS", "max_forks_repo_forks_event_min_datetime": "2018-06-23T10:03:41.000Z", "max_forks_repo_forks_event_max_datetime": "2018-06-23T10:03:41.000Z"}
{"max_stars_count": 1, "max_issues_count": 24, "max_forks_count": 1, "avg_line_length": 28.3333333333, "max_line_length": 61, "alphanum_fraction": 0.6490196078}
import React from 'react';
import { render } from 'react-testing-library';
import { MemoryRouter } from 'react-router-dom';

import Curiosity from './Curiosity';

describe('test Mechanism', () => {
  test('displays title of Curiosity', () => {
    const { container } = render(
      <MemoryRouter initialEntries={['/curiosity']}>
        <Curiosity />
      </MemoryRouter>
    );
    const actual = container.querySelector('h1').textContent;
    expect(actual).toEqual('Cultivate your curiosity');
  });
});
