mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
* refactor: version history repository * refactor: oauth repository * refactor: trash repository * refactor: telemetry repository * refactor: metadata repository * refactor: cron repository * refactor: map repository * refactor: server-info repository * refactor: album user repository * refactor: notification repository
11 lines
287 B
TypeScript
11 lines
287 B
TypeScript
import { IOAuthRepository } from 'src/types';
|
|
import { Mocked } from 'vitest';
|
|
|
|
export const newOAuthRepositoryMock = (): Mocked<IOAuthRepository> => {
|
|
return {
|
|
init: vitest.fn(),
|
|
authorize: vitest.fn(),
|
|
getLogoutEndpoint: vitest.fn(),
|
|
getProfile: vitest.fn(),
|
|
};
|
|
};
|