From 4c2c5af3adaf07094400b2efe4ef0fdbd18be1b3 Mon Sep 17 00:00:00 2001 From: Enea Jahollari Date: Thu, 28 Sep 2023 19:48:52 +0200 Subject: [PATCH] fix CommunityListComponent tests --- .../community-list/community-list.component.spec.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/app/community-list-page/community-list/community-list.component.spec.ts b/src/app/community-list-page/community-list/community-list.component.spec.ts index 78dec6dffe..31dd9feacc 100644 --- a/src/app/community-list-page/community-list/community-list.component.spec.ts +++ b/src/app/community-list-page/community-list/community-list.component.spec.ts @@ -17,6 +17,9 @@ import { By } from '@angular/platform-browser'; import { isEmpty, isNotEmpty } from '../../shared/empty.util'; import { FlatNode } from '../flat-node.model'; 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', () => { let component: CommunityListComponent; @@ -202,6 +205,14 @@ describe('CommunityListComponent', () => { { provide: CommunityListService, useValue: communityListServiceStub },], schemas: [CUSTOM_ELEMENTS_SCHEMA] }) + .overrideComponent(CommunityListComponent, { + remove: { + imports: [ + ThemedLoadingComponent, + TruncatableComponent, + TruncatablePartComponent, + ]} + }) .compileComponents(); }));