refactor: refs #7068 requested changes
This commit is contained in:
parent
efb0162f9c
commit
b36c53119c
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue