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);