mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
74353193f8
* feat: user storage label * chore: open api * fix: checks * fix: api update validation and tests * feat: default admin storage label * fix: linting * fix: user create/update dto * fix: delete library with custom label
19 lines
450 B
TypeScript
19 lines
450 B
TypeScript
import { IUserRepository } from '../src';
|
|
|
|
export const newUserRepositoryMock = (): jest.Mocked<IUserRepository> => {
|
|
return {
|
|
get: jest.fn(),
|
|
getAdmin: jest.fn(),
|
|
getByEmail: jest.fn(),
|
|
getByStorageLabel: jest.fn(),
|
|
getByOAuthId: jest.fn(),
|
|
getUserStats: jest.fn(),
|
|
getList: jest.fn(),
|
|
create: jest.fn(),
|
|
update: jest.fn(),
|
|
delete: jest.fn(),
|
|
getDeletedUsers: jest.fn(),
|
|
restore: jest.fn(),
|
|
};
|
|
};
|