1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-04 10:56:47 +01:00
immich/server/test/repositories/oauth.repository.mock.ts

12 lines
308 B
TypeScript
Raw Normal View History

2024-10-05 22:37:33 +02:00
import { IOAuthRepository } from 'src/interfaces/oauth.interface';
import { Mocked } from 'vitest';
export const newOAuthRepositoryMock = (): Mocked<IOAuthRepository> => {
return {
init: vitest.fn(),
authorize: vitest.fn(),
getLogoutEndpoint: vitest.fn(),
getProfile: vitest.fn(),
};
};