diff --git a/server/apps/immich/src/api-v1/asset/asset.service.spec.ts b/server/apps/immich/src/api-v1/asset/asset.service.spec.ts index 4c61c4e997..7f19e0684e 100644 --- a/server/apps/immich/src/api-v1/asset/asset.service.spec.ts +++ b/server/apps/immich/src/api-v1/asset/asset.service.spec.ts @@ -11,11 +11,13 @@ import { DownloadService } from '../../modules/download/download.service'; import { BackgroundTaskService } from '../../modules/background-task/background-task.service'; import { IAssetUploadedJob, IVideoTranscodeJob } from '@app/job'; import { Queue } from 'bull'; +import { IAlbumRepository } from "../album/album-repository"; describe('AssetService', () => { let sui: AssetService; let a: Repository; // TO BE DELETED AFTER FINISHED REFACTORING let assetRepositoryMock: jest.Mocked; + let albumRepositoryMock: jest.Mocked; let downloadServiceMock: jest.Mocked>; let backgroundTaskServiceMock: jest.Mocked; let assetUploadedQueueMock: jest.Mocked>; @@ -122,6 +124,7 @@ describe('AssetService', () => { getAssetWithNoThumbnail: jest.fn(), getAssetWithNoSmartInfo: jest.fn(), getExistingAssets: jest.fn(), + countByIdAndUser: jest.fn(), }; downloadServiceMock = { @@ -130,6 +133,7 @@ describe('AssetService', () => { sui = new AssetService( assetRepositoryMock, + albumRepositoryMock, a, backgroundTaskServiceMock, assetUploadedQueueMock,