change description of test case: load() now returns undefined if not logged-in

This commit is contained in:
2025-10-30 12:16:21 +01:00
parent 4fc6da850b
commit 332a3e5c15

View File

@@ -4,7 +4,7 @@ import { ROUTE_NAMES } from '../../src/routes';
import { baseData, mockEvent } from '../fixtures'; import { baseData, mockEvent } from '../fixtures';
describe('+layout.server load(): Teste korrekte URL', () => { describe('+layout.server load(): Teste korrekte URL', () => {
test('Werfe redirect zu /anmeldung wenn User nicht eingeloggt', async () => { test('Werfe keinen Redirect und gebe nichts zurück', async () => {
const mockEvent = { const mockEvent = {
locals: { locals: {
user: null user: null