client/app/UpdateList/components/PledgeUpdate_test.js
import React from 'react'
import { shallow } from 'enzyme'
import PledgeUpdate from './PledgeUpdate'
describe('<PledgeUpdate />', function () {
const props = {
update: {
content: 'Die Laptops sind auf dem Weg.',
created_at: '2016-09-01T12:05:22.964Z'
}
}
it('should render', function () {
const wrapper = shallow(<PledgeUpdate {...props} />)
wrapper.find('li').length.should.equal(1)
})
})