From b36c53119c9970d9d16971de4915389e242a7b19 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 21 Jan 2025 09:06:53 +0100 Subject: [PATCH] refactor: refs #7068 requested changes --- src/components/VnTable/__tests__/VnVisibleColumns.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/VnTable/__tests__/VnVisibleColumns.spec.js b/src/components/VnTable/__tests__/VnVisibleColumns.spec.js index 3589ca676..a9578126c 100644 --- a/src/components/VnTable/__tests__/VnVisibleColumns.spec.js +++ b/src/components/VnTable/__tests__/VnVisibleColumns.spec.js @@ -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(); }); }); });