mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
43ec0b77a0
* Add on this day * add query for x year * dev: add query * dev: front end * dev: styling * styling * more styling * add new page * navigating * navigate back and forth * styling * show gallery * fix test * fix test * show previous and next title * fix test * show up down scrolling button * more styling * styling * fix app bar * fix height of next/previous * autoplay * auto play * refactor * refactor * refactor * show date * Navigate * finish * pr feedback
19 lines
514 B
TypeScript
19 lines
514 B
TypeScript
import { IAssetRepository } from '@app/domain';
|
|
|
|
export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
|
|
return {
|
|
getByDate: jest.fn(),
|
|
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(),
|
|
};
|
|
};
|