mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Vitest unit test configs completed. All tests pass
This commit is contained in:
parent
cb3e230f5f
commit
eb2de5460c
33 changed files with 116 additions and 66 deletions
|
@ -1,4 +1,4 @@
|
|||
import PrimeVue from '@/components/config/PrimeVue';
|
||||
import PrimeVue from '../config/PrimeVue';
|
||||
import { mount } from '@vue/test-utils';
|
||||
import ConfirmDialog from './ConfirmDialog.vue';
|
||||
|
||||
|
@ -62,7 +62,7 @@ describe('ConfirmDialog', () => {
|
|||
}
|
||||
});
|
||||
|
||||
const acceptTriggered = jest.spyOn(wrapper.componentVM.confirmation, 'accept');
|
||||
const acceptTriggered = vi.spyOn(wrapper.componentVM.confirmation, 'accept');
|
||||
|
||||
await wrapper.setData({ visible: true });
|
||||
|
||||
|
@ -101,7 +101,7 @@ describe('ConfirmDialog', () => {
|
|||
}
|
||||
});
|
||||
|
||||
const rejectTriggered = jest.spyOn(wrapper.componentVM.confirmation, 'reject');
|
||||
const rejectTriggered = vi.spyOn(wrapper.componentVM.confirmation, 'reject');
|
||||
|
||||
await wrapper.setData({ visible: true });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue