From 432fb3578a9d792519f67ac07633bae961b5dd88 Mon Sep 17 00:00:00 2001 From: QuCMGisaia Date: Mon, 7 Oct 2024 14:08:08 +0200 Subject: [PATCH] ci: fix karma tests --- .../arlas-wui-root/arlas-wui-root.component.spec.ts | 4 ++-- src/app/components/arlas-wui-root/arlas-wui-root.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts b/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts index 1c88ebd9..119f9031 100644 --- a/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts +++ b/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts @@ -60,8 +60,8 @@ describe('ArlasWuiRootComponent', () => { mockSettingsService.getLinksSettings.and.returnValue(); mockSettingsService.getTicketingKey.and.returnValue(); - const mockContributorService = jasmine.createSpyObj('ContributorService', ['getChipSearchContributor']); - mockContributorService.getChipSearchContributor.and.returnValue(); + const mockContributorService = jasmine.createSpyObj('ContributorService', ['getSearchContributors']); + mockContributorService.getSearchContributors.and.returnValue(); await TestBed.configureTestingModule({ imports: [ diff --git a/src/app/components/arlas-wui-root/arlas-wui-root.component.ts b/src/app/components/arlas-wui-root/arlas-wui-root.component.ts index 1c33d11d..66be5f1d 100644 --- a/src/app/components/arlas-wui-root/arlas-wui-root.component.ts +++ b/src/app/components/arlas-wui-root/arlas-wui-root.component.ts @@ -379,7 +379,7 @@ export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy { */ private adjustComponentsSize() { setTimeout(() => { - if (this.timelineComponent.timelineHistogramComponent) { + if (!!this.timelineComponent && !!this.timelineComponent.timelineHistogramComponent) { this.timelineComponent.timelineHistogramComponent.resizeHistogram(); if (!!this.timelineComponent.detailedTimelineHistogramComponent) { this.timelineComponent.detailedTimelineHistogramComponent.resizeHistogram();