mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(InputMenu): emit remove-tag event (#4511)
This commit is contained in:
@@ -108,6 +108,13 @@ describe('InputMenu', () => {
|
||||
await input.vm.$emit('update:open', false)
|
||||
expect(wrapper.emitted()).toMatchObject({ blur: [[{ type: 'blur' }]] })
|
||||
})
|
||||
|
||||
test('remove-tag event', async () => {
|
||||
const wrapper = mount(InputMenu, { props: { modelValue: ['Option 1'], items: ['Option 1', 'Option 2'], multiple: true } })
|
||||
const input = wrapper.findComponent({ name: 'TagsInputRoot' })
|
||||
await input.vm.$emit('remove-tag', 'Option 1')
|
||||
expect(wrapper.emitted()).toMatchObject({ 'remove-tag': [['Option 1']] })
|
||||
})
|
||||
})
|
||||
|
||||
describe('form integration', async () => {
|
||||
|
||||
Reference in New Issue
Block a user