From 268bdb4bd48620bf8636866deb8c67c59326a2a6 Mon Sep 17 00:00:00 2001 From: Andrea Barbasso <´andrea.barbasso@4science.com´> Date: Thu, 14 Mar 2024 11:12:38 +0100 Subject: [PATCH] [DURACOM-191] fix some tests --- .../admin-notify-outgoing.component.spec.ts | 4 ++++ .../upload/file/section-upload-file.component.spec.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/app/admin/admin-notify-dashboard/admin-notify-logs/admin-notify-outgoing/admin-notify-outgoing.component.spec.ts b/src/app/admin/admin-notify-dashboard/admin-notify-logs/admin-notify-outgoing/admin-notify-outgoing.component.spec.ts index 3ce29794ee..60e6c91cf1 100644 --- a/src/app/admin/admin-notify-dashboard/admin-notify-logs/admin-notify-outgoing/admin-notify-outgoing.component.spec.ts +++ b/src/app/admin/admin-notify-dashboard/admin-notify-logs/admin-notify-outgoing/admin-notify-outgoing.component.spec.ts @@ -15,6 +15,7 @@ import { SEARCH_CONFIG_SERVICE } from '../../../../my-dspace-page/my-dspace-conf import { MockActivatedRoute } from '../../../../shared/mocks/active-router.mock'; import { getMockRemoteDataBuildService } from '../../../../shared/mocks/remote-data-build.service.mock'; import { routeServiceStub } from '../../../../shared/testing/route-service.stub'; +import { AdminNotifyLogsResultComponent } from '../admin-notify-logs-result/admin-notify-logs-result.component'; import { AdminNotifyOutgoingComponent } from './admin-notify-outgoing.component'; describe('AdminNotifyOutgoingComponent', () => { @@ -46,6 +47,9 @@ describe('AdminNotifyOutgoingComponent', () => { provideMockStore({}), ], }) + .overrideComponent(AdminNotifyOutgoingComponent, { + remove: { imports: [AdminNotifyLogsResultComponent] }, + }) .compileComponents(); fixture = TestBed.createComponent(AdminNotifyOutgoingComponent); diff --git a/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts b/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts index 57972526ca..bd46e6b8c8 100644 --- a/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts +++ b/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts @@ -28,6 +28,7 @@ import { JsonPatchOperationPathCombiner } from '../../../../core/json-patch/buil import { JsonPatchOperationsBuilder } from '../../../../core/json-patch/builder/json-patch-operations-builder'; import { HALEndpointService } from '../../../../core/shared/hal-endpoint.service'; import { SubmissionJsonPatchOperationsService } from '../../../../core/submission/submission-json-patch-operations.service'; +import { ThemedFileDownloadLinkComponent } from '../../../../shared/file-download-link/themed-file-download-link.component'; import { FormBuilderService } from '../../../../shared/form/builder/form-builder.service'; import { FormService } from '../../../../shared/form/form.service'; import { getMockFormService } from '../../../../shared/mocks/form-service.mock'; @@ -123,6 +124,7 @@ describe('SubmissionSectionUploadFileComponent test suite', () => { .overrideComponent(SubmissionSectionUploadFileComponent, { remove: { imports: [ SubmissionSectionUploadFileViewComponent, + ThemedFileDownloadLinkComponent, ] }, }) .compileComponents().then();