Skip to content

Commit

Permalink
ci: fix karma tests
Browse files Browse the repository at this point in the history
  • Loading branch information
QuCMGisaia committed Oct 7, 2024
1 parent ed34cc6 commit 432fb35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 432fb35

Please sign in to comment.