initiatived21/d21

View on GitHub
client/app/PledgeView/components/PledgeImage_test.js

Summary

Maintainability
A
1 hr
Test Coverage
import React       from 'react'
import { shallow } from 'enzyme'
import PledgeImage from './PledgeImage'

describe('<PledgeImage />', function () {
  const props = {
    src: '/images/5000_laptops.png'
  }

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

    wrapper.find('img').length.should.equal(1)
  })
})