tests updated

This commit is contained in:
Tuğçe Küçükoğlu 2022-12-08 17:13:16 +03:00
parent 5e87f4f312
commit 30f792c0a5
25 changed files with 65 additions and 56 deletions

View file

@ -147,7 +147,7 @@ describe('ContextMenu.vue', () => {
it('should exist', async () => {
const event = { pageX: 100, pageY: 120, preventDefault: () => {}, stopPropagation: () => {} };
const show = jest.spyOn(wrapper.vm, 'show');
const show = vi.spyOn(wrapper.vm, 'show');
wrapper.vm.show(event);
await wrapper.setData({ visible: true });
@ -159,7 +159,7 @@ describe('ContextMenu.vue', () => {
});
it('should hide menu', async () => {
const hide = jest.spyOn(wrapper.vm, 'hide');
const hide = vi.spyOn(wrapper.vm, 'hide');
await wrapper.setData({ visible: true });