initiatived21/d21

View on GitHub
client/app/CommentList/components/PledgeQuestion_test.js

Summary

Maintainability
A
3 hrs
Test Coverage
import React from 'react'
import { shallow } from 'enzyme'

import CommentAvatar from '../../Avatar/components/CommentAvatar'
import PledgeQuestion from './PledgeQuestion'

describe('<PledgeQuestion />', function () {
  it('should render', function () {
    const wrapper = shallow(<PledgeQuestion>Um welche Laptops handelt es sich?</PledgeQuestion>)

    wrapper.find(CommentAvatar).length.should.equal(1)
    wrapper.find('p').length.should.equal(1)
  })
})