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/Login.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/Login.test.tsx')
| -rw-r--r-- | frontend/src/components/Login.test.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/components/Login.test.tsx b/frontend/src/components/Login.test.tsx index aea7042..cf69eb1 100644 --- a/frontend/src/components/Login.test.tsx +++ b/frontend/src/components/Login.test.tsx @@ -28,9 +28,9 @@ describe('Login Component', () => { }); it('handles successful login', async () => { - (global.fetch as any).mockResolvedValueOnce({ + vi.mocked(global.fetch).mockResolvedValueOnce({ ok: true, - }); + } as Response); renderLogin(); @@ -51,10 +51,10 @@ describe('Login Component', () => { }); it('handles failed login', async () => { - (global.fetch as any).mockResolvedValueOnce({ + vi.mocked(global.fetch).mockResolvedValueOnce({ ok: false, json: async () => ({ message: 'Bad credentials' }), - }); + } as Response); renderLogin(); @@ -67,7 +67,7 @@ describe('Login Component', () => { }); it('handles network error', async () => { - (global.fetch as any).mockRejectedValueOnce(new Error('Network error')); + vi.mocked(global.fetch).mockRejectedValueOnce(new Error('Network error')); renderLogin(); |
