import * as React from 'react'
import { shallow } from 'enzyme'
import BreadcrumbsSmall from '../small'

describe('packages/ui', () => {
  describe('BreadcrumbSmall', () => {
    it('renders correctly with a selected value', () => {
      const crumbs = [{ label: 'foo' }, { label: 'bar' }]
      const element = <BreadcrumbsSmall crumbs={crumbs} />
      const wrapper = shallow(element)
      expect(wrapper).toMatchSnapshot()
    })
  })
})
