mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
efa6efd200
* remove external path * open-api * make sql * move library settings to admin panel * Add documentation * show external libraries only * fix library list * make user library settings look good * fix test * fix tests * fix tests * can pick user for library * fix tests * fix e2e * chore: make sql * Use unauth exception * delete user library list * cleanup * fix e2e * fix await lint * chore: remove unused code * chore: cleanup * revert docs * fix: is admin stuff * table alignment --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
19 lines
488 B
TypeScript
19 lines
488 B
TypeScript
import { ILibraryRepository } from '@app/domain';
|
|
|
|
export const newLibraryRepositoryMock = (): jest.Mocked<ILibraryRepository> => {
|
|
return {
|
|
get: jest.fn(),
|
|
getCountForUser: jest.fn(),
|
|
create: jest.fn(),
|
|
delete: jest.fn(),
|
|
softDelete: jest.fn(),
|
|
update: jest.fn(),
|
|
getStatistics: jest.fn(),
|
|
getDefaultUploadLibrary: jest.fn(),
|
|
getUploadLibraryCount: jest.fn(),
|
|
getAssetIds: jest.fn(),
|
|
getAllDeleted: jest.fn(),
|
|
getAll: jest.fn(),
|
|
};
|
|
};
|