mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 10:56:47 +01: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(),
|
||
|
};
|
||
|
};
|