{"size": 500, "ext": "js", "max_stars_repo_path": "Chapter10/Activity 10.01/src/Dashboard.test.js", "max_stars_repo_name": "RoniAndarsyah/Workshop-React-Web-Dev--Brandon-Rickey-dll", "max_stars_repo_stars_event_min_datetime": "2020-03-27T23:47:19.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-16T07:29:11.000Z", "max_issues_repo_path": "Chapter10/Activity 10.01/src/Dashboard.test.js", "max_issues_repo_name": "RoniAndarsyah/Workshop-React-Web-Dev--Brandon-Rickey-dll", "max_issues_repo_issues_event_min_datetime": "2020-09-07T16:22:27.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T22:13:36.000Z", "max_forks_repo_path": "Chapter10/Activity 10.01/src/Dashboard.test.js", "max_forks_repo_name": "RoniAndarsyah/Workshop-React-Web-Dev--Brandon-Rickey-dll", "max_forks_repo_forks_event_min_datetime": "2020-01-01T19:04:44.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-28T08:40:41.000Z"}
{"max_stars_count": 45, "max_issues_count": 33, "max_forks_count": 44, "avg_line_length": 26.3157894737, "max_line_length": 49, "alphanum_fraction": 0.7}
import React from 'react';
import {render} from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import Dashboard from './Dashboard';
import { MemoryRouter } from 'react-router-dom';
import { createBrowserHistory } from 'history';

test('renders correctly', () => {
  const history = createBrowserHistory();

  history.push("/dashboard");
  const {container} = render(
    <MemoryRouter>
      <Dashboard />
    </MemoryRouter>);

  expect(container).toMatchSnapshot()
});
