mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +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
|
@ -25,13 +25,13 @@ describe('ToggleButton', () => {
|
|||
expect(wrapper.find('span.pi-check').exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('should click works', async () => {
|
||||
await wrapper.vm.onClick({});
|
||||
it('should change works', async () => {
|
||||
await wrapper.vm.onChange({});
|
||||
|
||||
expect(wrapper.emitted()['update:modelValue'][0]).toEqual([true]);
|
||||
|
||||
await wrapper.setProps({ modelValue: true });
|
||||
await wrapper.vm.onClick({});
|
||||
await wrapper.vm.onChange({});
|
||||
|
||||
expect(wrapper.emitted()['update:modelValue'][1]).toEqual([false]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue