mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
tests updated
This commit is contained in:
parent
5e87f4f312
commit
30f792c0a5
25 changed files with 65 additions and 56 deletions
|
@ -1,5 +1,5 @@
|
|||
import PrimeVue from 'primevue/config';
|
||||
import { mount } from '@vue/test-utils';
|
||||
import PrimeVue from 'primevue/config';
|
||||
import ConfirmDialog from './ConfirmDialog.vue';
|
||||
|
||||
describe('ConfirmDialog', () => {
|
||||
|
@ -66,7 +66,7 @@ describe('ConfirmDialog', () => {
|
|||
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
const acceptTriggered = jest.spyOn(wrapper.componentVM.confirmation, 'accept');
|
||||
const acceptTriggered = vi.spyOn(wrapper.componentVM.confirmation, 'accept');
|
||||
const CDAcceptBtn = wrapper.find('.p-confirm-dialog-accept');
|
||||
|
||||
await CDAcceptBtn.trigger('click');
|
||||
|
@ -105,7 +105,7 @@ describe('ConfirmDialog', () => {
|
|||
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
const rejectTriggered = jest.spyOn(wrapper.componentVM.confirmation, 'reject');
|
||||
const rejectTriggered = vi.spyOn(wrapper.componentVM.confirmation, 'reject');
|
||||
const CDRejectBtn = wrapper.find('.p-confirm-dialog-reject');
|
||||
|
||||
await CDRejectBtn.trigger('click');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue