client/app/PledgeData/components/PledgeState_test.js
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/)
})
})