Test fixes

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-05 12:22:45 +03:00
parent 2e04dc691e
commit e1bca55172
6 changed files with 6 additions and 22 deletions

View file

@ -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', () => {