initiatived21/d21

View on GitHub
client/app/PledgeData/components/PledgeState_test.js

Summary

Maintainability
A
0 mins
Test Coverage
import React       from 'react'
import { shallow } from 'enzyme'
import PledgeState from './PledgeState'

describe('<PledgeState />', function () {
  const props = {
    state: 'active',
    remainingDays: 3
  }

  it('should render', function () {
    const wrapper = shallow(<PledgeState {...props} />)

    wrapper.find('p').at(0).text().should.match(/3/)
  })
})