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
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Has been cancelled
This commit is contained in:
@@ -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({}),
|
||||
|
||||
Reference in New Issue
Block a user