fix PR remarks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user