initiatived21/d21

View on GitHub
client/app/UpdateList/components/PledgeUpdate_test.js

Summary

Maintainability
A
1 hr
Test Coverage
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)
  })
})