mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
b9cda59172
* refactor: add/remove album assets * chore: open api * feat: remove owned assets from album * refactor: move to bulk id req/res dto * chore: open api * chore: merge main * dev: mobile work * fix: adding asset from web not sync with mobile * remove print statement --------- Co-authored-by: Alex Tran <Alex.Tran@conductix.com>
21 lines
551 B
TypeScript
21 lines
551 B
TypeScript
import { IAlbumRepository } from '@app/domain';
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
return {
|
|
getById: jest.fn(),
|
|
getByIds: jest.fn(),
|
|
getByAssetId: jest.fn(),
|
|
getAssetCountForIds: jest.fn(),
|
|
getInvalidThumbnail: jest.fn(),
|
|
getOwned: jest.fn(),
|
|
getShared: jest.fn(),
|
|
getNotShared: jest.fn(),
|
|
deleteAll: jest.fn(),
|
|
getAll: jest.fn(),
|
|
hasAsset: jest.fn(),
|
|
create: jest.fn(),
|
|
update: jest.fn(),
|
|
delete: jest.fn(),
|
|
updateThumbnails: jest.fn(),
|
|
};
|
|
};
|