mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 18:42:17 -07: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(),
|
|
};
|
|
};
|