import React from 'react'
import { shallow, mount } from 'enzyme'
import ContentWrapper from './index'
import { Title, TitleIcon } from './Content'

describe('components/BoxElements/ExploreBox/Content', () => {
  let mountedBox

  it('should match snapshot', () => {
    const wrapper = shallow(<ContentWrapper />)
    expect(wrapper).toMatchSnapshot()
  })

  it('should display one title', () => {
    mountedBox = mount(<ContentWrapper />)
    expect(mountedBox.contains(<Title />))
  })

  it('should contain Icon', () => {
    mountedBox = mount(<ContentWrapper />)
    expect(mountedBox.contains(<TitleIcon />))
  })
})
