mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5095 - Unit tests in the master branch are failing
This commit is contained in:
parent
a40796714c
commit
48aa388953
7 changed files with 22 additions and 68 deletions
|
@ -8,13 +8,13 @@ describe('InputSwitch.vue', () => {
|
|||
expect(wrapper.find('.p-inputswitch.p-component').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-inputswitch-slider').exists()).toBe(true);
|
||||
|
||||
await wrapper.trigger('click');
|
||||
await wrapper.vm.onChange({});
|
||||
|
||||
expect(wrapper.emitted()['update:modelValue'][0]).toEqual([true]);
|
||||
|
||||
await wrapper.setProps({ modelValue: true });
|
||||
|
||||
expect(wrapper.vm.checked).toBe(true);
|
||||
expect(wrapper.find('.p-inputswitch').classes()).toContain('p-inputswitch-checked');
|
||||
expect(wrapper.find('.p-inputswitch').classes()).toContain('p-highlight');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue