mirror of
https://github.com/immich-app/immich.git
synced 2025-04-04 07:06:25 +02:00
14 lines
425 B
TypeScript
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(),
|
|
};
|
|
};
|