232201_test_to_master #62

Merged
alexm merged 50 commits from 232201_test_to_master into master 2023-06-01 07:26:39 +00:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit 28d844ab3d - Show all commits
test/vitest/__tests__/components/common

View File

@ -1,4 +1,4 @@
import { vi, describe, expect, it, beforeAll, afterEach } from 'vitest';
import { vi, describe, expect, it, beforeAll, afterEach, beforeEach } from 'vitest';
import { createWrapper, axios } from 'app/test/vitest/helper';
import VnLog from 'src/components/common/VnLog.vue';
@ -10,9 +10,12 @@ describe('VnLog', () => {
model: "Claim",
},
}).vm;
vi.spyOn(axios, 'get').mockResolvedValue({ data: true });
});
beforeEach(()=>{
vi.spyOn(axios, 'get').mockResolvedValue({ data: true });
})
afterEach(() => {
vi.clearAllMocks();
});