aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/main.test.ts
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 19:47:59 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 19:47:59 -0800
commit2d48202fa547e94f21662d63a3ff5d04c4fe8f2c (patch)
tree23c29fd6536b132d7d77157b14d8559203285c06 /frontend-vanilla/src/main.test.ts
parent59743dcaa87920a5125915454e0afa0a22b05ee7 (diff)
downloadneko-2d48202fa547e94f21662d63a3ff5d04c4fe8f2c.tar.gz
neko-2d48202fa547e94f21662d63a3ff5d04c4fe8f2c.tar.bz2
neko-2d48202fa547e94f21662d63a3ff5d04c4fe8f2c.zip
Vanilla JS (v3): Fix filtering logic, Settings navigation, and refine styles for v2 parity
Diffstat (limited to 'frontend-vanilla/src/main.test.ts')
-rw-r--r--frontend-vanilla/src/main.test.ts14
1 files changed, 7 insertions, 7 deletions
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(() => {