mirror of
https://github.com/immich-app/immich.git
synced 2024-11-17 02:49:01 -07:00
8ebac41318
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
19 lines
488 B
TypeScript
19 lines
488 B
TypeScript
import { IAssetRepository } from '@app/domain';
|
|
|
|
export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
|
|
return {
|
|
getByIds: jest.fn().mockResolvedValue([]),
|
|
getWithout: jest.fn(),
|
|
getWith: jest.fn(),
|
|
getFirstAssetForAlbumId: jest.fn(),
|
|
getAll: jest.fn().mockResolvedValue({
|
|
items: [],
|
|
hasNextPage: false,
|
|
}),
|
|
deleteAll: jest.fn(),
|
|
save: jest.fn(),
|
|
findLivePhotoMatch: jest.fn(),
|
|
getMapMarkers: jest.fn(),
|
|
};
|
|
};
|