diff options
Diffstat (limited to 'frontend/src/components/TagView.test.tsx')
| -rw-r--r-- | frontend/src/components/TagView.test.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/components/TagView.test.tsx b/frontend/src/components/TagView.test.tsx index 8a724cd..6304fb2 100644 --- a/frontend/src/components/TagView.test.tsx +++ b/frontend/src/components/TagView.test.tsx @@ -76,6 +76,9 @@ describe('Tag View Integration', () => { expect(screen.getByText('Tag Item 1')).toBeInTheDocument(); }); - expect(global.fetch).toHaveBeenCalledWith('/api/stream?tag=Tech'); + const params = new URLSearchParams(); + params.append('tag', 'Tech'); + params.append('read_filter', 'unread'); + expect(global.fetch).toHaveBeenCalledWith(`/api/stream?${params.toString()}`); }); }); |
