From 0d1bd063e6dd4f89df08fd1f8e1fb04dbe4b91c9 Mon Sep 17 00:00:00 2001 From: Andrea Barbasso <´andrea.barbasso@4science.com´> Date: Thu, 14 Mar 2024 10:39:45 +0100 Subject: [PATCH] [DURACOM-191] fix notify-info.service test --- .../core/coar-notify/notify-info/notify-info.service.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/core/coar-notify/notify-info/notify-info.service.spec.ts b/src/app/core/coar-notify/notify-info/notify-info.service.spec.ts index d32ad729dd..6fa8295be0 100644 --- a/src/app/core/coar-notify/notify-info/notify-info.service.spec.ts +++ b/src/app/core/coar-notify/notify-info/notify-info.service.spec.ts @@ -1,7 +1,9 @@ import { TestBed } from '@angular/core/testing'; +import { ActivatedRoute } from '@angular/router'; import { of } from 'rxjs'; import { createSuccessfulRemoteDataObject$ } from '../../../shared/remote-data.utils'; +import { ActivatedRouteStub } from '../../../shared/testing/active-router.stub'; import { ConfigurationDataService } from '../../data/configuration-data.service'; import { AuthorizationDataService } from '../../data/feature-authorization/authorization-data.service'; import { NotifyInfoService } from './notify-info.service'; @@ -22,6 +24,7 @@ describe('NotifyInfoService', () => { NotifyInfoService, { provide: ConfigurationDataService, useValue: configurationDataService }, { provide: AuthorizationDataService, useValue: authorizationDataService }, + { provide: ActivatedRoute, useValue: new ActivatedRouteStub() }, ], }); service = TestBed.inject(NotifyInfoService);