mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
13 lines
278 B
TypeScript
13 lines
278 B
TypeScript
|
|
import { IKeyRepository } from '../src';
|
||
|
|
|
||
|
|
export const newKeyRepositoryMock = (): jest.Mocked<IKeyRepository> => {
|
||
|
|
return {
|
||
|
|
create: jest.fn(),
|
||
|
|
update: jest.fn(),
|
||
|
|
delete: jest.fn(),
|
||
|
|
getKey: jest.fn(),
|
||
|
|
getById: jest.fn(),
|
||
|
|
getByUserId: jest.fn(),
|
||
|
|
};
|
||
|
|
};
|