fix CollectionAuthorizationsComponent tests

This commit is contained in:
Enea Jahollari
2023-09-28 18:15:42 +02:00
parent 35aadf7524
commit 7d96c90db9

View File

@@ -10,6 +10,7 @@ import { DSpaceObject } from '../../../core/shared/dspace-object.model';
import { CollectionAuthorizationsComponent } from './collection-authorizations.component'; import { CollectionAuthorizationsComponent } from './collection-authorizations.component';
import { Collection } from '../../../core/shared/collection.model'; import { Collection } from '../../../core/shared/collection.model';
import { createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils'; import { createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils';
import { ResourcePoliciesComponent } from '../../../shared/resource-policies/resource-policies.component';
describe('CollectionAuthorizationsComponent', () => { describe('CollectionAuthorizationsComponent', () => {
let comp: CollectionAuthorizationsComponent<DSpaceObject>; let comp: CollectionAuthorizationsComponent<DSpaceObject>;
@@ -47,7 +48,11 @@ describe('CollectionAuthorizationsComponent', () => {
CollectionAuthorizationsComponent, CollectionAuthorizationsComponent,
], ],
schemas: [NO_ERRORS_SCHEMA] schemas: [NO_ERRORS_SCHEMA]
}).compileComponents(); })
.overrideComponent(CollectionAuthorizationsComponent, {
remove: { imports: [ResourcePoliciesComponent] }
})
.compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {