import React from 'react'
import { shallow } from 'enzyme'
import ExploreBox from '.'
import ImageWrapper from './components/Image'
import ContentWrapper from './components/Content'
import ImageUrl from './assets/explore-img.svg'

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

  it('should match snapshot', () => {
    component = shallow(
      <ExploreBox>
        <ImageWrapper imageUrl={ImageUrl} />
        <ContentWrapper
          title="Explore the technical whitepaper"
          textual="Get to know the mechanism we use to revolutionize asset trading"
        />
      </ExploreBox>
    )
    expect(component).toMatchSnapshot()
  })
})
