fix CommunityListComponent tests

This commit is contained in:
Enea Jahollari
2023-09-28 19:48:52 +02:00
parent 840bad06bd
commit 4c2c5af3ad

View File

@@ -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;
@@ -201,6 +204,14 @@ describe('CommunityListComponent', () => {
providers: [CommunityListComponent, providers: [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();
})); }));