| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | import * as sinon from 'sinon'; |
||
| 19 | it('writes an stringified representation of provided value in local storage', () => { |
||
| 20 | const value = { bar: 'baz' }; |
||
| 21 | |||
| 22 | storage.set('foo', value); |
||
| 23 | |||
| 24 | expect(localStorageMock.setItem.callCount).toEqual(1); |
||
| 25 | expect(localStorageMock.setItem.getCall(0).args).toEqual([ |
||
| 26 | 'shlink.foo', |
||
| 27 | JSON.stringify(value), |
||
| 28 | ]); |
||
| 29 | }); |
||
| 30 | }); |
||
| 51 |