immich/server/test/repositories/api-key.repository.mock.ts

13 lines
283 B
TypeScript
Raw Permalink Normal View History

import { IKeyRepository } from '@app/domain';
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(),
};
};