{"size": 666, "ext": "js", "max_stars_repo_path": "__tests__/components/RootComponent.test.js", "max_stars_repo_name": "vladanpaunovic/sinopia_editor", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "__tests__/components/RootComponent.test.js", "max_issues_repo_name": "vladanpaunovic/sinopia_editor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "__tests__/components/RootComponent.test.js", "max_forks_repo_name": "vladanpaunovic/sinopia_editor", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.75, "max_line_length": 61, "alphanum_fraction": 0.6846846847}
// Copyright 2018 Stanford University see LICENSE for license

import React from 'react'
import { shallow } from 'enzyme'
import { OffCanvas } from 'react-offcanvas'
import { Provider } from 'react-redux'
import RootContainer from 'components/RootContainer'

describe('<RootComponent />', () => {
  const wrapper = shallow(<RootContainer/>)

  it('renders the home-page div', () => {
    expect(wrapper.find('div#home-page').length).toEqual(1)
  })

  it('contains the OffCanvas component', () => {
    expect(wrapper.find(OffCanvas)).toHaveLength(1)
  })

  it('wraps the App in a store Provider', () => {
    expect(wrapper.find(Provider)).toHaveLength(1)
  })
})
