[DURACOM-191] fix some tests

This commit is contained in:
Andrea Barbasso
2024-03-14 11:12:38 +01:00
parent 6ef5d7ef46
commit 268bdb4bd4
2 changed files with 6 additions and 0 deletions

View File

@@ -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);

View File

@@ -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();