import React from 'react'
import { mount, shallow } from 'enzyme'
import ContributeButton from './index'

describe('components/Buttons/ContributeButton', () => {
  let mountedButton

  it('should display label "CONTRIBUTE"', () => {
    mountedButton = mount(<ContributeButton />)
    expect(mountedButton.text()).toEqual('CONTRIBUTE')
  })

  it('should display three arrows in perpetual movement', () => {
    mountedButton = mount(<ContributeButton />)
    expect(mountedButton.find('span')).toHaveLength(3)
  })

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