Skip to content

Commit

Permalink
components: importdialog: mock up fetch for test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdfischer committed Sep 12, 2018
1 parent b4c186e commit 494ce47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/components/ImportDialog.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from 'react'
import { shallow } from 'enzyme'
import ImportDialog from './ImportDialog'
import fetchMock from 'fetch-mock'

it('should render defaults safely', () => {
fetchMock.mock('/api/people/', {})
shallow(<ImportDialog />)
})

0 comments on commit 494ce47

Please sign in to comment.