refactor: refs #7068 requested changes

This commit is contained in:
Jon Elias 2025-01-21 09:06:53 +01:00
parent efb0162f9c
commit b36c53119c
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { describe, expect, it, beforeEach, vi } from 'vitest';
import { describe, expect, it, beforeEach, afterEach, vi } from 'vitest';
import { createWrapper } from 'app/test/vitest/helper';
import VnVisibleColumn from '../VnVisibleColumn.vue';
import { axios } from 'app/test/vitest/helper';
@ -17,6 +17,10 @@ describe('VnVisibleColumns', () => {
vm = wrapper.vm;
});
afterEach(() => {
vi.clearAllMocks();
});
describe('setUserConfigViewData()', () => {
it('should initialize localColumns with visible configuration', () => {
columnsMock = [
@ -112,8 +116,6 @@ describe('VnVisibleColumns', () => {
},
],
});
mockAxiosPost.mockRestore();
});
});
});