fix: redirect to login/ when refresh token is invalid

This commit is contained in:
2026-08-21 23:01:32 +02:00
parent 00d54df194
commit 8c35899bd9
4 changed files with 84 additions and 15 deletions
+9 -5
View File
@@ -7,11 +7,15 @@ import type { LocalList } from '@/database/db'
const pushMock = vi.fn<(to: string) => void>()
vi.mock('vue-router', () => ({
useRouter: () => ({
push: pushMock,
}),
}))
vi.mock('vue-router', async (importOriginal) => {
const actual = await importOriginal<typeof import('vue-router')>()
return {
...actual,
useRouter: () => ({
push: pushMock,
}),
}
})
describe('ListDetailView', () => {
beforeEach(() => {