fix(fc2c-i): assert / redirect via navigation, not resolve()

This commit is contained in:
2026-05-15 21:29:52 -04:00
parent 5a4663fa3d
commit 5faa19234d
+5 -3
View File
@@ -6,9 +6,11 @@ describe('router', () => {
expect(FRONT_DOOR).toBe('/showcase')
})
it('/ redirects to FRONT_DOOR', () => {
const resolved = router.resolve('/')
expect(resolved.path).toBe(FRONT_DOOR)
it('/ redirects to FRONT_DOOR', async () => {
// resolve() does not follow redirects (they apply on navigation), so
// actually navigate and assert the resulting route.
await router.push('/')
expect(router.currentRoute.value.path).toBe(FRONT_DOOR)
})
it('gallery is reachable at /gallery', () => {