Vitest unit test configs completed. All tests pass

This commit is contained in:
Bahadir Sofuoglu 2022-09-14 16:17:12 +03:00
parent cb3e230f5f
commit eb2de5460c
33 changed files with 116 additions and 66 deletions

View file

@ -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 });