1 import {StoreService} from './store.service';
2 import {HatchService} from './hatch.service';
4 describe('StoreService', () => {
5 let service: StoreService;
6 let hatchService: HatchService;
8 hatchService = new HatchService();
9 service = new StoreService(null /* CookieService */, hatchService);
12 it('should set/get a localStorage value', () => {
13 const str = 'hello, world';
14 service.setLocalItem('testKey', str);
15 expect(service.getLocalItem('testKey')).toBe(str);
18 it('should set/get a sessionStorage value', () => {
19 const str = 'hello, world again';
20 service.setLocalItem('testKey', str);
21 expect(service.getLocalItem('testKey')).toBe(str);