From 2c3cad528a247c771bca136466337877f76f280f Mon Sep 17 00:00:00 2001
From: Adam Mathes <adam@adammathes.com>
Date: Thu, 12 Feb 2026 21:59:55 -0800
Subject: Implement Frontend Feed List with tests

---
 frontend/src/App.test.tsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'frontend/src/App.test.tsx')

diff --git a/frontend/src/App.test.tsx b/frontend/src/App.test.tsx
index 8e3d805..37a7fab 100644
--- a/frontend/src/App.test.tsx
+++ b/frontend/src/App.test.tsx
@@ -1,3 +1,5 @@
+import React from 'react';
+import '@testing-library/jest-dom';
 import { render, screen, waitFor } from '@testing-library/react';
 import App from './App';
 import { describe, it, expect, vi, beforeEach } from 'vitest';
@@ -18,15 +20,15 @@ describe('App', () => {
     });
 
     it('renders dashboard when authenticated', async () => {
-        (global.fetch as any).mockResolvedValueOnce({
-            ok: true,
-        });
+        (global.fetch as any)
+            .mockResolvedValueOnce({ ok: true }) // /api/auth
+            .mockResolvedValueOnce({ ok: true, json: async () => [] }); // /api/feed/
 
         window.history.pushState({}, 'Test page', '/v2/');
         render(<App />);
 
         await waitFor(() => {
-            expect(screen.getByText(/dashboard/i)).toBeInTheDocument();
+            expect(screen.getByText(/neko reader/i)).toBeInTheDocument();
         });
     });
 });
-- 
cgit v1.2.3

