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 { createWrapper } from 'app/test/vitest/helper';
|
||||||
import VnVisibleColumn from '../VnVisibleColumn.vue';
|
import VnVisibleColumn from '../VnVisibleColumn.vue';
|
||||||
import { axios } from 'app/test/vitest/helper';
|
import { axios } from 'app/test/vitest/helper';
|
||||||
|
@ -17,6 +17,10 @@ describe('VnVisibleColumns', () => {
|
||||||
vm = wrapper.vm;
|
vm = wrapper.vm;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
vi.clearAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
describe('setUserConfigViewData()', () => {
|
describe('setUserConfigViewData()', () => {
|
||||||
it('should initialize localColumns with visible configuration', () => {
|
it('should initialize localColumns with visible configuration', () => {
|
||||||
columnsMock = [
|
columnsMock = [
|
||||||
|
@ -112,8 +116,6 @@ describe('VnVisibleColumns', () => {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
mockAxiosPost.mockRestore();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue