2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

Update Dropdown.spec.js

This commit is contained in:
Jeff Sagal
2022-02-18 15:36:29 -08:00
parent 9572207527
commit f931cb3d03
-13
View File
@@ -31,19 +31,6 @@ describe('Toggling Dropdown', () => {
expect(Select.vm.open).toEqual(true)
})
it('should not close the dropdown when the el is clicked and enableMouseInputSearch is set to true', () => {
const Select = selectWithProps({
modelValue: [{ label: 'one' }],
options: [{ label: 'one' }],
enableMouseSearchInput: true,
})
Select.vm.toggleDropdown(clickEvent(Select.vm.$refs.search))
expect(Select.vm.open).toBeFalsy()
Select.vm.toggleDropdown(clickEvent(Select.vm.$el))
expect(Select.vm.open).toBeFalsy()
})
it('should open the dropdown when the selected tag is clicked', () => {
const Select = selectWithProps({
modelValue: [{ label: 'one' }],