undo skipped tests, only allow API calls for admin-views, refactor viewer-page to use page.server

This commit is contained in:
2025-11-03 14:21:08 +01:00
parent a9e3d8264c
commit 3c16bc89e5
9 changed files with 61 additions and 38 deletions

View File

@@ -1,9 +1,11 @@
import { describe, test, expect, vi } from 'vitest';
import { GET } from '$root/routes/api/vorgang/[vorgang]/vorgangPIN/+server';
import { db } from '$lib/server/dbService';
import { baseData } from '../fixtures';
const mockEvent = {
params: { vorgang: '123' }
params: { vorgang: '123' },
locals: { user: baseData.user }
};
vi.mock('$lib/server/dbService', () => ({