mirror of
https://github.com/immich-app/immich.git
synced 2025-01-08 12:56:48 +01:00
41befc0948
* fix: don't reveal user count publicly * fix: mobile and user controller * fix: update other frontend endpoints * fix: revert openapi change * chore: open api * fix: initialize * openapi --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
19 lines
480 B
TypeScript
19 lines
480 B
TypeScript
import { IUserRepository } from '@app/domain';
|
|
|
|
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(),
|
|
hasAdmin: jest.fn(),
|
|
};
|
|
};
|