From: Galen Charlton Date: Mon, 22 Jun 2020 21:43:07 +0000 (-0400) Subject: LP#1851306: (follow-up) add additional test stubs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9c4a46bed68a325d13dd4714e63c497c10f5f833;p=evergreen%2Ftadl.git LP#1851306: (follow-up) add additional test stubs Accounting for changes in ReservationActionsService. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservation-actions.spec.ts b/Open-ILS/src/eg2/src/app/staff/booking/reservation-actions.spec.ts index 10f8549a52..c47af8d6dc 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/reservation-actions.spec.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/reservation-actions.spec.ts @@ -1,19 +1,26 @@ import { TestBed } from '@angular/core/testing'; import { Router } from '@angular/router'; +import { CookieService } from 'ngx-cookie'; +import { PrintService } from '@eg/share/print/print.service'; import { PcrudService } from '@eg/core/pcrud.service'; import { ReservationActionsService } from './reservation-actions.service'; describe('ReservationActionsService', () => { let service: ReservationActionsService; + let cookieServiceStub: Partial; + let printServiceStub: Partial; const routerSpy = { navigate: jasmine.createSpy('navigate') }; beforeEach(() => { const pcrudServiceStub = {}; + const cookieServiceStub = {}; TestBed.configureTestingModule({ providers: [ ReservationActionsService, { provide: Router, useValue: routerSpy }, - { provide: PcrudService, useValue: pcrudServiceStub } + { provide: PcrudService, useValue: pcrudServiceStub }, + { provide: CookieService, useValue: cookieServiceStub }, + { provide: PrintService, useValue: printServiceStub } ] }); service = TestBed.get(ReservationActionsService);