initiatived21/d21

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

Summary

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

describe('<ProgressBar />', function () {
  const props = {
    percentage: 60,
    urgent: false
  }

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

    wrapper.find('div').length.should.equal(2)
  })
})