mirror of
https://github.com/immich-app/immich.git
synced 2024-11-15 18:08:48 -07:00
12 lines
308 B
TypeScript
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(),
|
|
};
|
|
};
|