1 import {StoreService} from './store.service';
3 describe('StoreService', () => {
4 let service: StoreService;
6 service = new StoreService(null /* CookieService */);
9 it('should set/get a localStorage value', () => {
10 const str = 'hello, world';
11 service.setLocalItem('testKey', str);
12 expect(service.getLocalItem('testKey')).toBe(str);
15 it('should set/get a sessionStorage value', () => {
16 const str = 'hello, world again';
17 service.setLocalItem('testKey', str);
18 expect(service.getLocalItem('testKey')).toBe(str);