{"size": 690, "ext": "js", "max_stars_repo_path": "tests/routes/Studio/components/StudioView.spec.js", "max_stars_repo_name": "lina128/ikelab-studio", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/routes/Studio/components/StudioView.spec.js", "max_issues_repo_name": "lina128/ikelab-studio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/routes/Studio/components/StudioView.spec.js", "max_forks_repo_name": "lina128/ikelab-studio", "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": 21.5625, "max_line_length": 64, "alphanum_fraction": 0.5666666667}
import React from 'react'
import { shallow } from 'enzyme'
import { StudioView } from 'routes/Studio/components/StudioView'

describe('(Studio/components) StudioView', () => {
  let _wrapper, _props

  beforeEach(() => {
    _props = {
      experiments: [
        {
          experiment_id: 1,
          name: 'New Experiment'
        }
      ]
    }
    _wrapper = shallow(<StudioView {..._props} />)
  })

  it('Should render as a div.', () => {
    expect(_wrapper.is('div')).to.equal(true)
  })

  it('Should render a list.', () => {
    expect(_wrapper.find('ul')).to.exist
  })

  it('Should render one experiment.', () => {
    expect(_wrapper.find('li')).to.have.length(1)
  })
})
