diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-15 14:22:31 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-15 14:22:31 -0800 |
| commit | cc74caf9d9b66711f4aab793966c1f8a5663e1b9 (patch) | |
| tree | 8602af15cd7e36f1ce1f8a5c9f6753b7f108adbe /frontend/src/components/FeedList.test.tsx | |
| parent | 9f64d3a18eb92c4845dac38265acecef2931490b (diff) | |
| download | neko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.tar.gz neko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.tar.bz2 neko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.zip | |
Switch to HashRouter to fix page reload issues (NK-hy162w)
Diffstat (limited to 'frontend/src/components/FeedList.test.tsx')
| -rw-r--r-- | frontend/src/components/FeedList.test.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/FeedList.test.tsx b/frontend/src/components/FeedList.test.tsx index d3d3a57..d4e72cc 100644 --- a/frontend/src/components/FeedList.test.tsx +++ b/frontend/src/components/FeedList.test.tsx @@ -202,8 +202,9 @@ describe('FeedList Component', () => { await waitFor(() => { expect(global.fetch).toHaveBeenCalledWith('/api/logout', expect.any(Object)); - expect(window.location.href).toContain('/v2/login'); + expect(window.location.href).toContain('/v2/#/login'); }); + // @ts-expect-error - restoring window.location window.location = originalLocation; }); |
