Add mock implementations for role checks in auth utility and enhance sharp mock with image metadata retrieval
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Has been cancelled

This commit is contained in:
Torsten Schulz (local)
2026-04-15 20:44:54 +02:00
parent 0fb8052a77
commit 1922e85184
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ vi.mock('../server/utils/auth.js', () => ({
vi.mock('sharp', () => ({
default: vi.fn(() => ({
metadata: vi.fn().mockResolvedValue({ width: 1200, height: 800 }),
resize: vi.fn().mockReturnThis(),
rotate: vi.fn().mockReturnThis(),
toFile: vi.fn().mockResolvedValue({}),