mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fix CommunityListComponent tests
This commit is contained in:
@@ -17,6 +17,9 @@ import { By } from '@angular/platform-browser';
|
|||||||
import { isEmpty, isNotEmpty } from '../../shared/empty.util';
|
import { isEmpty, isNotEmpty } from '../../shared/empty.util';
|
||||||
import { FlatNode } from '../flat-node.model';
|
import { FlatNode } from '../flat-node.model';
|
||||||
import { RouterLinkWithHref } from '@angular/router';
|
import { RouterLinkWithHref } from '@angular/router';
|
||||||
|
import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.component';
|
||||||
|
import { TruncatableComponent } from '../../shared/truncatable/truncatable.component';
|
||||||
|
import { TruncatablePartComponent } from '../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||||
|
|
||||||
describe('CommunityListComponent', () => {
|
describe('CommunityListComponent', () => {
|
||||||
let component: CommunityListComponent;
|
let component: CommunityListComponent;
|
||||||
@@ -202,6 +205,14 @@ describe('CommunityListComponent', () => {
|
|||||||
{ provide: CommunityListService, useValue: communityListServiceStub },],
|
{ provide: CommunityListService, useValue: communityListServiceStub },],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
})
|
})
|
||||||
|
.overrideComponent(CommunityListComponent, {
|
||||||
|
remove: {
|
||||||
|
imports: [
|
||||||
|
ThemedLoadingComponent,
|
||||||
|
TruncatableComponent,
|
||||||
|
TruncatablePartComponent,
|
||||||
|
]}
|
||||||
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user