import {LocaleService} from './locale.service';
import {Location} from '@angular/common';
import {FormatService} from './format.service';
+import {HatchService} from './hatch.service';
import {SpyLocation} from '@angular/common/testing';
import localeArJO from '@angular/common/locales/ar-JO';
import localeCs from '@angular/common/locales/cs';
let evtService: EventService;
let storeService: StoreService;
let localeService: LocaleService;
+ let hatchService: HatchService;
// tslint:disable-next-line:prefer-const
let location: SpyLocation;
let service: FormatService;
datePipe = new DatePipe('en');
idlService = new IdlService();
evtService = new EventService();
- storeService = new StoreService(null /* CookieService */);
+ hatchService = new HatchService();
+ storeService = new StoreService(null /* CookieService */, hatchService);
netService = new NetService(evtService);
authService = new AuthService(evtService, netService, storeService);
pcrudService = new PcrudService(idlService, netService, authService);
import {PcrudService} from './pcrud.service';
import {StoreService} from './store.service';
import {OrgService} from './org.service';
+import {HatchService} from './hatch.service';
describe('OrgService', () => {
let idlService: IdlService;
let orgService: OrgService;
let evtService: EventService;
let storeService: StoreService;
+ let hatchService: HatchService;
beforeEach(() => {
idlService = new IdlService();
evtService = new EventService();
- storeService = new StoreService(null /* CookieService */);
+ hatchService = new HatchService();
+ storeService = new StoreService(null /* CookieService */, hatchService);
netService = new NetService(evtService);
authService = new AuthService(evtService, netService, storeService);
pcrudService = new PcrudService(idlService, netService, authService);
import {StoreService} from './store.service';
+import {HatchService} from './hatch.service';
describe('StoreService', () => {
let service: StoreService;
+ let hatchService: HatchService;
beforeEach(() => {
- service = new StoreService(null /* CookieService */);
+ hatchService = new HatchService();
+ service = new StoreService(null /* CookieService */, hatchService);
});
it('should set/get a localStorage value', () => {
import {AuthService} from '@eg/core/auth.service';
import {EventService} from '@eg/core/event.service';
import {StoreService} from '@eg/core/store.service';
+import {HatchService} from '@eg/core/hatch.service';
let netService: NetService;
let authService: AuthService;
let evtService: EventService;
let storeService: StoreService;
+let hatchService: HatchService;
beforeEach(() => {
evtService = new EventService();
- storeService = new StoreService(null /* CookieService */);
+ hatchService = new HatchService();
+ storeService = new StoreService(null /* CookieService */, hatchService);
netService = new NetService(evtService);
authService = new AuthService(evtService, netService, storeService);
});