mirror of
https://github.com/immich-app/immich.git
synced 2024-11-17 19:08:49 -07:00
92972ac776
* refactor: api keys * refactor: test module * chore: tests * chore: fix provider * refactor: test mock repos
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(),
|
|
};
|
|
};
|