2023-02-25 15:12:03 +01:00
|
|
|
import { IAssetRepository } from '../src';
|
|
|
|
|
|
|
|
export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
|
|
|
|
return {
|
2023-03-18 14:44:42 +01:00
|
|
|
getByIds: jest.fn(),
|
2023-03-20 16:55:28 +01:00
|
|
|
getWithout: jest.fn(),
|
2023-03-26 04:46:48 +02:00
|
|
|
getFirstAssetForAlbumId: jest.fn(),
|
2023-05-22 20:05:06 +02:00
|
|
|
getAll: jest.fn().mockResolvedValue({
|
|
|
|
items: [],
|
|
|
|
hasNextPage: false,
|
|
|
|
}),
|
2023-02-25 15:12:03 +01:00
|
|
|
deleteAll: jest.fn(),
|
|
|
|
save: jest.fn(),
|
|
|
|
findLivePhotoMatch: jest.fn(),
|
2023-05-21 08:26:06 +02:00
|
|
|
getMapMarkers: jest.fn(),
|
2023-02-25 15:12:03 +01:00
|
|
|
};
|
|
|
|
};
|