From df6a32fc4b17b8e4cb4645a4efeefe69a93c9c09 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Thu, 30 Apr 2020 14:09:40 -0400 Subject: [PATCH] LP#1876163 - Fix Angular Test Failure ERROR in app/core/format.spec.ts - TS2554: Expected 4 arguments, but got 3. orgService = new OrgService(netService, authService, pcrudService); Commit 9e8d662f418 added a new first argument to the OrgService constructor and two files needed updates: * app/core/format.spec.ts * src/app/core/org.spec.ts Signed-off-by: Jason Stephenson Signed-off-by: Chris Sharp --- Open-ILS/src/eg2/src/app/core/format.spec.ts | 5 ++++- Open-ILS/src/eg2/src/app/core/org.spec.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/core/format.spec.ts b/Open-ILS/src/eg2/src/app/core/format.spec.ts index 8a4877f1dc..d0d3bfd196 100644 --- a/Open-ILS/src/eg2/src/app/core/format.spec.ts +++ b/Open-ILS/src/eg2/src/app/core/format.spec.ts @@ -1,6 +1,7 @@ import {DatePipe, CurrencyPipe, registerLocaleData} from '@angular/common'; import {IdlService} from './idl.service'; import {EventService} from './event.service'; +import {DbStoreService} from './db-store.service'; import {NetService} from './net.service'; import {AuthService} from './auth.service'; import {PcrudService} from './pcrud.service'; @@ -26,6 +27,7 @@ describe('FormatService', () => { let orgService: OrgService; let evtService: EventService; let storeService: StoreService; + let dbStoreService: DbStoreService; let localeService: LocaleService; let hatchService: HatchService; // tslint:disable-next-line:prefer-const @@ -42,7 +44,8 @@ describe('FormatService', () => { netService = new NetService(evtService); authService = new AuthService(evtService, netService, storeService); pcrudService = new PcrudService(idlService, netService, authService); - orgService = new OrgService(netService, authService, pcrudService); + dbStoreService = new DbStoreService(); + orgService = new OrgService(dbStoreService, netService, authService, pcrudService); localeService = new LocaleService(location, null, pcrudService); service = new FormatService( datePipe, diff --git a/Open-ILS/src/eg2/src/app/core/org.spec.ts b/Open-ILS/src/eg2/src/app/core/org.spec.ts index 9ebb028f12..2fc6996295 100644 --- a/Open-ILS/src/eg2/src/app/core/org.spec.ts +++ b/Open-ILS/src/eg2/src/app/core/org.spec.ts @@ -1,5 +1,6 @@ import {IdlService} from './idl.service'; import {EventService} from './event.service'; +import {DbStoreService} from './db-store.service'; import {NetService} from './net.service'; import {AuthService} from './auth.service'; import {PcrudService} from './pcrud.service'; @@ -16,6 +17,7 @@ describe('OrgService', () => { let evtService: EventService; let storeService: StoreService; let hatchService: HatchService; + let dbStoreService: DbStoreService; beforeEach(() => { idlService = new IdlService(); @@ -25,7 +27,8 @@ describe('OrgService', () => { netService = new NetService(evtService); authService = new AuthService(evtService, netService, storeService); pcrudService = new PcrudService(idlService, netService, authService); - orgService = new OrgService(netService, authService, pcrudService); + dbStoreService = new DbStoreService(); + orgService = new OrgService(dbStoreService, netService, authService, pcrudService); }); const initTestData = () => { -- 2.43.2