Fix test
parent
e5a3e1fa41
commit
2b3b93fb37
|
@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue