Fix type errors
parent
52a04bf8fc
commit
6fa52b9ba8
|
@ -111,16 +111,8 @@ describe('IFQL.Components.FuncsButton', () => {
|
||||||
const dropdownButton = wrapper.find('button')
|
const dropdownButton = wrapper.find('button')
|
||||||
dropdownButton.simulate('click')
|
dropdownButton.simulate('click')
|
||||||
|
|
||||||
let list = wrapper
|
let list = wrapper.find(FuncList).dive()
|
||||||
.find(FuncList)
|
const input = list
|
||||||
.dive()
|
|
||||||
.find(FuncListItem)
|
|
||||||
|
|
||||||
expect(list.exists()).toBe(true)
|
|
||||||
|
|
||||||
const input = wrapper
|
|
||||||
.find(FuncList)
|
|
||||||
.dive()
|
|
||||||
.find(FuncSelectorInput)
|
.find(FuncSelectorInput)
|
||||||
.dive()
|
.dive()
|
||||||
.find('input')
|
.find('input')
|
||||||
|
@ -139,7 +131,7 @@ describe('IFQL.Components.FuncsButton', () => {
|
||||||
it('adds a function to the page', () => {
|
it('adds a function to the page', () => {
|
||||||
const onAddNode = jest.fn()
|
const onAddNode = jest.fn()
|
||||||
const {wrapper, props} = setup({onAddNode})
|
const {wrapper, props} = setup({onAddNode})
|
||||||
const [__, func2] = props.funcs
|
const [, func2] = props.funcs
|
||||||
|
|
||||||
const dropdownButton = wrapper.find('button')
|
const dropdownButton = wrapper.find('button')
|
||||||
dropdownButton.simulate('click')
|
dropdownButton.simulate('click')
|
||||||
|
|
Loading…
Reference in New Issue