diff --git a/apps/server/src/modules/deletion/uc/deletion-request.uc.spec.ts b/apps/server/src/modules/deletion/uc/deletion-request.uc.spec.ts index 9ebee1e77ef..bef37c91643 100644 --- a/apps/server/src/modules/deletion/uc/deletion-request.uc.spec.ts +++ b/apps/server/src/modules/deletion/uc/deletion-request.uc.spec.ts @@ -18,6 +18,7 @@ import { FilesStorageClientAdapterService } from '@src/modules/files-storage-cli import { DomainModel } from '@shared/domain/types'; import { TaskService } from '@modules/task'; import { DomainOperationBuilder } from '@shared/domain/builder'; +import { NewsUc } from '@src/modules/news/uc'; import { DeletionStatusModel } from '../domain/types'; import { DeletionLogService } from '../services/deletion-log.service'; import { DeletionRequestService } from '../services'; @@ -124,6 +125,7 @@ describe(DeletionRequestUc.name, () => { provide: TaskService, useValue: createMock(), }, + { provide: NewsUc, useValue: createMock() }, ], }).compile(); @@ -472,7 +474,7 @@ describe(DeletionRequestUc.name, () => { await uc.executeDeletionRequests(); - expect(deletionLogService.createDeletionLog).toHaveBeenCalledTimes(13); + expect(deletionLogService.createDeletionLog).toHaveBeenCalledTimes(14); }); });