/* eslint-env jest */

import React from 'react'
import moment from 'moment'
import {
  shallow
} from 'enzyme'

const getMockProps = () => ({
  app: {
    charity: {}
  },
  user: {
    vcCurrent: 12
  },
  campaignTitle: 'Some title here!',
  campaignStartDatetime: moment(),
  campaignEndDatetime: moment(),
  showError: jest.fn()
})

describe('Heart donation campaign component', () => {
  it('renders without error', () => {
    const HeartDonationCampaign = require('js/components/Campaign/HeartDonationCampaignComponent').default
    const mockProps = getMockProps()
    shallow(
      <HeartDonationCampaign {...mockProps}>
        <span>Some content</span>
      </HeartDonationCampaign>
    )
  })
})

@@ -159,16 +159,41 @@
 arity: %7B
+%0A      vcReceived: 0%0A    
 %7D%0A  %7D,%0A 

Add required prop to test