From ca1418fc0135d52a009ab218d6e24187fb355a3c Mon Sep 17 00:00:00 2001
From: Adam Mathes <adam@adammathes.com>
Date: Sat, 14 Feb 2026 09:09:10 -0800
Subject: security: implement CSRF protection and improve session cookie
 security (fixing NK-gfh33y)

---
 frontend/src/components/FeedItems.test.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'frontend/src/components/FeedItems.test.tsx')

diff --git a/frontend/src/components/FeedItems.test.tsx b/frontend/src/components/FeedItems.test.tsx
index 4d96da9..ca0dc98 100644
--- a/frontend/src/components/FeedItems.test.tsx
+++ b/frontend/src/components/FeedItems.test.tsx
@@ -21,7 +21,7 @@ describe('FeedItems Component', () => {
   });
 
   it('renders loading state', () => {
-    (global.fetch as any).mockImplementation(() => new Promise(() => {}));
+    (global.fetch as any).mockImplementation(() => new Promise(() => { }));
     render(
       <MemoryRouter initialEntries={['/feed/1']}>
         <Routes>
@@ -70,7 +70,7 @@ describe('FeedItems Component', () => {
     const params = new URLSearchParams();
     params.append('feed_id', '1');
     params.append('read_filter', 'unread');
-    expect(global.fetch).toHaveBeenCalledWith(`/api/stream?${params.toString()}`);
+    expect(global.fetch).toHaveBeenCalledWith(`/api/stream?${params.toString()}`, expect.anything());
   });
 
   it('handles keyboard shortcuts', async () => {
@@ -138,7 +138,7 @@ describe('FeedItems Component', () => {
     });
 
     // Capture the callback
-    let observerCallback: IntersectionObserverCallback = () => {};
+    let observerCallback: IntersectionObserverCallback = () => { };
 
     // Override the mock to capture callback
     class MockIntersectionObserver {
@@ -199,7 +199,7 @@ describe('FeedItems Component', () => {
       .mockResolvedValueOnce({ ok: true, json: async () => initialItems })
       .mockResolvedValueOnce({ ok: true, json: async () => moreItems });
 
-    let observerCallback: IntersectionObserverCallback = () => {};
+    let observerCallback: IntersectionObserverCallback = () => { };
     class MockIntersectionObserver {
       constructor(callback: IntersectionObserverCallback) {
         observerCallback = callback;
@@ -240,7 +240,7 @@ describe('FeedItems Component', () => {
       const params = new URLSearchParams();
       params.append('max_id', '101');
       params.append('read_filter', 'unread');
-      expect(global.fetch).toHaveBeenCalledWith(`/api/stream?${params.toString()}`);
+      expect(global.fetch).toHaveBeenCalledWith(`/api/stream?${params.toString()}`, expect.anything());
     });
   });
 });
-- 
cgit v1.2.3

