Fix type errors

pull/10616/head
Andrew Watkins 2018-04-06 12:15:28 -07:00
parent 52a04bf8fc
commit 6fa52b9ba8
1 changed files with 3 additions and 11 deletions

View File

@ -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')