mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
10 lines
337 B
TypeScript
10 lines
337 B
TypeScript
import { IVersionHistoryRepository } from 'src/interfaces/version-history.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newVersionHistoryRepositoryMock = (): Mocked<IVersionHistoryRepository> => {
|
|
return {
|
|
getAll: vitest.fn().mockResolvedValue([]),
|
|
getLatest: vitest.fn(),
|
|
create: vitest.fn(),
|
|
};
|
|
};
|