mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 15:10:06 +00:00
fix: add explicit type annotation to fix TS7006 error
This commit is contained in:
@@ -208,11 +208,11 @@ describe('WidgetSelect Value Binding', () => {
|
||||
const wrapper = mountComponent(widget, 'option2')
|
||||
|
||||
const select = wrapper.findComponent({ name: 'Select' })
|
||||
const selectOptions = select.props('options')
|
||||
const selectOptions = select.props('options') as string[]
|
||||
|
||||
// Should not duplicate the value
|
||||
expect(selectOptions).toEqual(options)
|
||||
expect(selectOptions.filter((opt) => opt === 'option2')).toHaveLength(1)
|
||||
expect(selectOptions.filter((opt: string) => opt === 'option2')).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user