{"size": 515, "ext": "js", "max_stars_repo_path": "src/App.test.js", "max_stars_repo_name": "meloncatty/react-linked-list", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/App.test.js", "max_issues_repo_name": "meloncatty/react-linked-list", "max_issues_repo_issues_event_min_datetime": "2018-04-25T02:50:51.000Z", "max_issues_repo_issues_event_max_datetime": "2018-04-25T02:50:51.000Z", "max_forks_repo_path": "src/App.test.js", "max_forks_repo_name": "meloncatty/react-linked-list", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.3913043478, "max_line_length": 51, "alphanum_fraction": 0.654368932}
/* global it, expect, jest */

import React from 'react'
import { shallow, configure } from 'enzyme'
import { App } from './App'
import { initialState } from './reducer/reducer.js'
import Adapter from 'enzyme-adapter-react-16'
configure({ adapter: new Adapter() })

it('App renders without crashing', () => {
  const mockFunction = jest.fn()

  const component = shallow(
    <App
      state={initialState}
      submitTodo={mockFunction}
      todos={[]}
    />
  )

  expect(component.exists()).toEqual(true)
})
