Frontend: App shell, navigation, routing, and design tokens #32

Merged
marcel merged 19 commits from feat/issue-16-design-system into master 2026-04-02 14:14:17 +02:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 32550377aa - Show all commits

View File

@@ -25,7 +25,10 @@ describe('auth guard (hooks.server.ts handle)', () => {
const event = {
url: new URL(`http://localhost${pathname}`),
cookies: {
get: vi.fn().mockReturnValue(cookie)
get: vi.fn().mockImplementation((name: string) => {
if (name === 'JSESSIONID') return cookie;
return undefined;
})
},
locals: {} as any,
fetch: vi.fn()

View File

@@ -23,7 +23,7 @@ export const handle: Handle = async ({ event, resolve }) => {
return resolve(event);
}
const sessionCookie = event.cookies.get('session');
const sessionCookie = event.cookies.get('JSESSIONID');
if (!sessionCookie) {
loginRedirect(event.url.pathname);
}