mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
- fix SelectButton.spec.js, Skeleton.spec.js
This commit is contained in:
parent
dbe55014d4
commit
d7c44ce029
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ describe('SelectButton.vue', () => {
|
|||
|
||||
it('should exist', () => {
|
||||
expect(wrapper.find('.p-selectbutton.p-component').exists()).toBe(true);
|
||||
expect(wrapper.findAll('.p-button.p-component').length).toBe(2);
|
||||
expect(wrapper.findAll('.p-togglebutton.p-component').length).toBe(2);
|
||||
});
|
||||
|
||||
it('should option select', async () => {
|
||||
|
@ -25,7 +25,7 @@ describe('SelectButton.vue', () => {
|
|||
|
||||
await wrapper.setProps({ modelValue: wrapper.vm.options[0] });
|
||||
|
||||
expect(wrapper.findAll('.p-button.p-component')[0].classes()).toContain('p-highlight');
|
||||
expect(wrapper.findAll('.p-togglebutton.p-component')[0].classes()).toContain('p-togglebutton-checked');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -50,6 +50,6 @@ describe('multiple select', () => {
|
|||
it('should select', async () => {
|
||||
await wrapper.setProps({ modelValue: wrapper.vm.options });
|
||||
|
||||
expect(wrapper.findAll('.p-highlight').length).toBe(3);
|
||||
expect(wrapper.findAll('.p-togglebutton-checked').length).toBe(3);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -33,6 +33,6 @@ describe('Skeleton.vue', () => {
|
|||
it('should remove animation', async () => {
|
||||
await wrapper.setProps({ animation: 'none' });
|
||||
|
||||
expect(wrapper.find('.p-skeleton').classes()).toContain('p-skeleton-none');
|
||||
expect(wrapper.find('.p-skeleton').classes()).toContain('p-skeleton-animation-none');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue