diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 21:11:40 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 21:11:40 -0800 |
| commit | d5a413382c93efeb1d888daf3216c51cd5f40f75 (patch) | |
| tree | a7d8505a0a1c90050ea6bd33c02f7e8a5b5537e5 /frontend/src/components/FeedItem.test.tsx | |
| parent | a7369274ba24298a0449865f147fc65253e992a2 (diff) | |
| download | neko-d5a413382c93efeb1d888daf3216c51cd5f40f75.tar.gz neko-d5a413382c93efeb1d888daf3216c51cd5f40f75.tar.bz2 neko-d5a413382c93efeb1d888daf3216c51cd5f40f75.zip | |
chore: fix lint and type errors to resolve CI failures
Diffstat (limited to 'frontend/src/components/FeedItem.test.tsx')
| -rw-r--r-- | frontend/src/components/FeedItem.test.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/components/FeedItem.test.tsx b/frontend/src/components/FeedItem.test.tsx index 4c7d887..1c51dc3 100644 --- a/frontend/src/components/FeedItem.test.tsx +++ b/frontend/src/components/FeedItem.test.tsx @@ -31,7 +31,7 @@ describe('FeedItem Component', () => { }); it('toggles star status', async () => { - (global.fetch as any).mockResolvedValueOnce({ ok: true, json: async () => ({}) }); + vi.mocked(global.fetch).mockResolvedValueOnce({ ok: true, json: async () => ({}) } as Response); render(<FeedItem item={mockItem} />); @@ -73,10 +73,10 @@ describe('FeedItem Component', () => { }); it('loads full content', async () => { - (global.fetch as any).mockResolvedValueOnce({ + vi.mocked(global.fetch).mockResolvedValueOnce({ ok: true, json: async () => ({ ...mockItem, full_content: '<p>Full Content Loaded</p>' }), - }); + } as Response); render(<FeedItem item={mockItem} />); |
