refactor homepage for admin-user and login mask if not logged in

This commit is contained in:
2025-10-29 12:34:38 +01:00
parent 416118197b
commit e26b36121a
6 changed files with 85 additions and 17 deletions

View File

@@ -11,13 +11,8 @@ describe('+layout.server load(): Teste korrekte URL', () => {
},
url: new URL(`https://example.com/not-anmeldung`)
};
try {
load(mockEvent);
throw new Error('Expected load() to throw');
} catch (err) {
expect(err.status).toBe(303);
expect(err.location).toBe(ROUTE_NAMES.ANMELDUNG);
}
const res = load(mockEvent);
expect(res).toBe(undefined);
});
});