diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-15 19:47:59 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-15 19:47:59 -0800 |
| commit | 2d48202fa547e94f21662d63a3ff5d04c4fe8f2c (patch) | |
| tree | 23c29fd6536b132d7d77157b14d8559203285c06 /frontend-vanilla/src/router.test.ts | |
| parent | 59743dcaa87920a5125915454e0afa0a22b05ee7 (diff) | |
| download | neko-2d48202fa547e94f21662d63a3ff5d04c4fe8f2c.tar.gz neko-2d48202fa547e94f21662d63a3ff5d04c4fe8f2c.tar.bz2 neko-2d48202fa547e94f21662d63a3ff5d04c4fe8f2c.zip | |
Vanilla JS (v3): Fix filtering logic, Settings navigation, and refine styles for v2 parity
Diffstat (limited to 'frontend-vanilla/src/router.test.ts')
| -rw-r--r-- | frontend-vanilla/src/router.test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend-vanilla/src/router.test.ts b/frontend-vanilla/src/router.test.ts index c206d9c..d1a5d7f 100644 --- a/frontend-vanilla/src/router.test.ts +++ b/frontend-vanilla/src/router.test.ts @@ -38,6 +38,15 @@ describe('Router', () => { expect(route.path).toBe('/tag'); expect(route.params.tagName).toBe('Tech News'); }); + it('should parse settings path', () => { + vi.stubGlobal('location', { + href: 'http://localhost/v3/settings', + pathname: '/v3/settings', + search: '' + }); + const route = router.getCurrentRoute(); + expect(route.path).toBe('/settings'); + }); it('should parse query parameters', () => { vi.stubGlobal('location', { |
