From ac11efc5c7a973ca1e97b26784c57b40cdb0cfa1 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Wed, 4 Feb 2026 22:06:33 -0800
Subject: [PATCH] Fix eslint warnings in test
---
src/__tests__/pages/index.test.jsx | 2 +-
src/components/quicklaunch.test.jsx | 3 +--
src/components/widgets/search/search.test.jsx | 12 +++++++++---
3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/__tests__/pages/index.test.jsx b/src/__tests__/pages/index.test.jsx
index 4355e9387..2a53425fc 100644
--- a/src/__tests__/pages/index.test.jsx
+++ b/src/__tests__/pages/index.test.jsx
@@ -339,7 +339,7 @@ describe("pages/index Index routing + SWR branches", () => {
localStorage.setItem("hash", "old-hash");
const fetchSpy = vi.fn(async () => ({ ok: true }));
- // eslint-disable-next-line no-global-assign
+
fetch = fetchSpy;
let reloadSpy;
diff --git a/src/components/quicklaunch.test.jsx b/src/components/quicklaunch.test.jsx
index 77262db1e..65cf7a508 100644
--- a/src/components/quicklaunch.test.jsx
+++ b/src/components/quicklaunch.test.jsx
@@ -277,7 +277,7 @@ describe("components/quicklaunch", () => {
const fetchSpy = vi.fn(async () => ({
json: async () => ["test", ["test 1", "test 2", "test 3", "test 4", "test 5"]],
}));
- // eslint-disable-next-line no-global-assign
+
fetch = fetchSpy;
renderWithProviders(