pull/10616/head
Andrew Watkins 2018-04-19 09:54:35 -07:00
parent e5a3e1fa41
commit 2b3b93fb37
1 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@ describe('IFQL.Components.FuncsButton', () => {
const onAddNode = jest.fn()
const {wrapper, props} = setup({onAddNode})
const [, func2] = props.funcs
const {expressionID} = props
const dropdownButton = wrapper.find('button')
dropdownButton.simulate('click')
@ -147,7 +148,7 @@ describe('IFQL.Components.FuncsButton', () => {
input.simulate('keyDown', {key: 'ArrowDown'})
input.simulate('keyDown', {key: 'Enter'})
expect(onAddNode).toHaveBeenCalledWith(func2)
expect(onAddNode).toHaveBeenCalledWith(func2, expressionID)
})
})
})