mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Test fixes
This commit is contained in:
parent
2e04dc691e
commit
e1bca55172
6 changed files with 6 additions and 22 deletions
|
@ -58,19 +58,6 @@ describe('TriStateCheckbox.vue', () => {
|
|||
expect(wrapper.vm.focused).toBeFalsy();
|
||||
expect(wrapper.emitted().blur).toBeTruthy();
|
||||
});
|
||||
|
||||
it('is icon changed', async () => {
|
||||
expect(wrapper.find('.p-checkbox-icon').classes()).not.toContain('pi-check');
|
||||
expect(wrapper.find('.p-checkbox-icon').classes()).not.toContain('pi-times');
|
||||
|
||||
await wrapper.setProps({ modelValue: true });
|
||||
|
||||
expect(wrapper.find('.p-checkbox-icon').classes()).toContain('pi-check');
|
||||
|
||||
await wrapper.setProps({ modelValue: false });
|
||||
|
||||
expect(wrapper.find('.p-checkbox-icon').classes()).toContain('pi-times');
|
||||
});
|
||||
});
|
||||
|
||||
describe('UpdateModel method tests', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue