1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-04-04 07:06:25 +02:00
immich/server/test/repositories/stack.repository.mock.ts
2025-02-11 14:08:13 -05:00

14 lines
425 B
TypeScript

import { StackRepository } from 'src/repositories/stack.repository';
import { RepositoryInterface } from 'src/types';
import { Mocked, vitest } from 'vitest';
export const newStackRepositoryMock = (): Mocked<RepositoryInterface<StackRepository>> => {
return {
search: vitest.fn(),
create: vitest.fn(),
update: vitest.fn(),
delete: vitest.fn(),
getById: vitest.fn(),
deleteAll: vitest.fn(),
};
};