mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fix CollectionAuthorizationsComponent tests
This commit is contained in:
@@ -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(() => {
|
||||||
|
Reference in New Issue
Block a user