From 9c4a46bed68a325d13dd4714e63c497c10f5f833 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 22 Jun 2020 17:43:07 -0400 Subject: [PATCH] LP#1851306: (follow-up) add additional test stubs Accounting for changes in ReservationActionsService. Signed-off-by: Galen Charlton --- .../src/eg2/src/app/staff/booking/reservation-actions.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 2.11.0