Update MultiSelect.spec.js
parent
088d3409de
commit
32fe57be3a
|
@ -48,7 +48,7 @@ describe('MultiSelect.vue', () => {
|
|||
await wrapper.setProps({ modelValue: [wrapper.vm.options[0]] });
|
||||
await wrapper.vm.onContainerClick();
|
||||
|
||||
expect(wrapper.findAll('li.p-multiselect-item')[0].classes()).toContain('p-highlight');
|
||||
expect(wrapper.findAll('li.p-multiselect-item')[0].attributes()['data-p-highlight']).toBe('true');
|
||||
expect(wrapper.find('.p-multiselect-label').text()).toBe('New York');
|
||||
});
|
||||
|
||||
|
@ -62,8 +62,8 @@ describe('MultiSelect.vue', () => {
|
|||
await wrapper.setProps({ modelValue: [wrapper.vm.options[0], wrapper.vm.options[1]] });
|
||||
await wrapper.vm.onContainerClick();
|
||||
|
||||
expect(wrapper.findAll('li.p-multiselect-item')[0].classes()).toContain('p-highlight');
|
||||
expect(wrapper.findAll('li.p-multiselect-item')[1].classes()).toContain('p-highlight');
|
||||
expect(wrapper.findAll('li.p-multiselect-item')[0].attributes()['data-p-highlight']).toBe('true');
|
||||
expect(wrapper.findAll('li.p-multiselect-item')[1].attributes()['data-p-highlight']).toBe('true');
|
||||
});
|
||||
|
||||
it('should close panel', async () => {
|
||||
|
|
Loading…
Reference in New Issue