From 7d96c90db90a9ac6b58e819edf99ee86561961b4 Mon Sep 17 00:00:00 2001 From: Enea Jahollari Date: Thu, 28 Sep 2023 18:15:42 +0200 Subject: [PATCH] fix CollectionAuthorizationsComponent tests --- .../collection-authorizations.component.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/collection-page/edit-collection-page/collection-authorizations/collection-authorizations.component.spec.ts b/src/app/collection-page/edit-collection-page/collection-authorizations/collection-authorizations.component.spec.ts index 8127a3b6e8..5a345d8baf 100644 --- a/src/app/collection-page/edit-collection-page/collection-authorizations/collection-authorizations.component.spec.ts +++ b/src/app/collection-page/edit-collection-page/collection-authorizations/collection-authorizations.component.spec.ts @@ -10,6 +10,7 @@ import { DSpaceObject } from '../../../core/shared/dspace-object.model'; import { CollectionAuthorizationsComponent } from './collection-authorizations.component'; import { Collection } from '../../../core/shared/collection.model'; import { createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils'; +import { ResourcePoliciesComponent } from '../../../shared/resource-policies/resource-policies.component'; describe('CollectionAuthorizationsComponent', () => { let comp: CollectionAuthorizationsComponent; @@ -47,7 +48,11 @@ describe('CollectionAuthorizationsComponent', () => { CollectionAuthorizationsComponent, ], schemas: [NO_ERRORS_SCHEMA] -}).compileComponents(); +}) + .overrideComponent(CollectionAuthorizationsComponent, { + remove: { imports: [ResourcePoliciesComponent] } + }) + .compileComponents(); })); beforeEach(() => {