From e4ea7d3ae2e970278d4cbdc3fef216de04dcabc9 Mon Sep 17 00:00:00 2001 From: Andrea Barbasso <´andrea.barbasso@4science.com´> Date: Thu, 14 Mar 2024 10:29:25 +0100 Subject: [PATCH] [DURACOM-191] fix footer.component test --- src/app/footer/footer.component.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/footer/footer.component.spec.ts b/src/app/footer/footer.component.spec.ts index da8114bdad..8608eeaf5e 100644 --- a/src/app/footer/footer.component.spec.ts +++ b/src/app/footer/footer.component.spec.ts @@ -12,6 +12,7 @@ import { waitForAsync, } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; +import { ActivatedRoute } from '@angular/router'; import { StoreModule } from '@ngrx/store'; import { TranslateLoader, @@ -24,6 +25,7 @@ import { storeModuleConfig } from '../app.reducer'; import { NotifyInfoService } from '../core/coar-notify/notify-info/notify-info.service'; import { AuthorizationDataService } from '../core/data/feature-authorization/authorization-data.service'; import { TranslateLoaderMock } from '../shared/mocks/translate-loader.mock'; +import { ActivatedRouteStub } from '../shared/testing/active-router.stub'; import { AuthorizationDataServiceStub } from '../shared/testing/authorization-service.stub'; // Load the implementations that should be tested import { FooterComponent } from './footer.component'; @@ -51,6 +53,7 @@ describe('Footer component', () => { FooterComponent, { provide: AuthorizationDataService, useClass: AuthorizationDataServiceStub }, { provide: NotifyInfoService, useValue: notifyInfoService }, + { provide: ActivatedRoute, useValue: new ActivatedRouteStub() }, ], schemas: [CUSTOM_ELEMENTS_SCHEMA], });