immich/server/test/repositories/oauth.repository.mock.ts
2024-10-05 16:37:33 -04:00

12 lines
308 B
TypeScript

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(),
};
};