LP#1851306: (follow-up) add additional test stubs
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 22 Jun 2020 21:43:07 +0000 (17:43 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 22 Jun 2020 21:43:07 +0000 (17:43 -0400)
Accounting for changes in ReservationActionsService.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/booking/reservation-actions.spec.ts

index 10f8549..c47af8d 100644 (file)
@@ -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<CookieService>;
+    let printServiceStub: Partial<PrintService>;
     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);