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 25, 2018
1 parent 4c3292b commit f2aced2
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 f2aced2

Please sign in to comment.