2024-03-21 13:59:49 +02:00
|
|
|
import { IAlbumRepository } from 'src/interfaces/album.interface';
|
2024-04-16 16:44:45 +02:00
|
|
|
import { Mocked, vitest } from 'vitest';
|
2023-02-25 16:12:03 +02:00
|
|
|
|
2024-04-16 16:44:45 +02:00
|
|
|
export const newAlbumRepositoryMock = (): Mocked<IAlbumRepository> => {
|
2023-02-25 16:12:03 +02:00
|
|
|
return {
|
2024-04-16 16:44:45 +02:00
|
|
|
getById: vitest.fn(),
|
|
|
|
getByAssetId: vitest.fn(),
|
|
|
|
getMetadataForIds: vitest.fn(),
|
|
|
|
getOwned: vitest.fn(),
|
|
|
|
getShared: vitest.fn(),
|
|
|
|
getNotShared: vitest.fn(),
|
|
|
|
restoreAll: vitest.fn(),
|
|
|
|
softDeleteAll: vitest.fn(),
|
|
|
|
deleteAll: vitest.fn(),
|
|
|
|
addAssetIds: vitest.fn(),
|
|
|
|
removeAsset: vitest.fn(),
|
|
|
|
removeAssetIds: vitest.fn(),
|
|
|
|
getAssetIds: vitest.fn(),
|
|
|
|
create: vitest.fn(),
|
|
|
|
update: vitest.fn(),
|
|
|
|
delete: vitest.fn(),
|
|
|
|
updateThumbnails: vitest.fn(),
|
2023-02-25 16:12:03 +02:00
|
|
|
};
|
|
|
|
};
|