fix PR remarks

This commit is contained in:
2025-10-09 13:05:21 +02:00
parent 45b5a36d04
commit 468427622f
3 changed files with 8 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ import { baseData } from '../fixtures';
import { ROUTE_NAMES } from '../../src/routes';
import { dev } from '$app/environment';
import { vorgangExists, vorgangPINValidation } from '$lib/server/vorgangService';
import { Redirect } from '@sveltejs/kit';
vi.mock('$lib/server/vorgangService', () => ({
vorgangExists: vi.fn(),
@@ -34,11 +35,11 @@ describe('Vorgang Anzeige via Token', () => {
}
};
let thrownRedirect;
let thrownRedirect: Redirect | undefined;
try {
await actions.getVorgangByToken(event);
} catch (e) {
thrownRedirect = e;
thrownRedirect = e as Redirect;
}
// Redirect bei erfolgreicher Eingabe