From 2d48202fa547e94f21662d63a3ff5d04c4fe8f2c Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 15 Feb 2026 19:47:59 -0800 Subject: Vanilla JS (v3): Fix filtering logic, Settings navigation, and refine styles for v2 parity --- frontend-vanilla/src/main.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'frontend-vanilla/src/main.test.ts') diff --git a/frontend-vanilla/src/main.test.ts b/frontend-vanilla/src/main.test.ts index be5a076..aa0568b 100644 --- a/frontend-vanilla/src/main.test.ts +++ b/frontend-vanilla/src/main.test.ts @@ -21,13 +21,13 @@ vi.mock('./api', () => ({ apiFetch: vi.fn() })); -// Mock IntersectionObserver -const mockObserver = vi.fn(() => ({ - observe: vi.fn(), - unobserve: vi.fn(), - disconnect: vi.fn(), -})); -vi.stubGlobal('IntersectionObserver', mockObserver); +// Mock IntersectionObserver as a constructor +class MockIntersectionObserver { + observe = vi.fn(); + unobserve = vi.fn(); + disconnect = vi.fn(); +} +vi.stubGlobal('IntersectionObserver', MockIntersectionObserver); describe('main application logic', () => { beforeEach(() => { -- cgit v1.2.3