Skip to content

Commit

Permalink
Adds test for mock formData function call
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Dec 19, 2018
1 parent 01e50b1 commit d53f3d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/components/editor/InputList.test.js
Expand Up @@ -63,5 +63,7 @@ describe('<InputList />', () => {

wrapper.find('#targetComponent').simulate('change', event(wrapper))
expect(wrapper.state().selected[0]).toEqual(opts)

expect(mockFormDataFn.mock.calls.length).toBe(1)
})
})

0 comments on commit d53f3d6

Please sign in to comment.