(initial = {})
| 16 | } from '#experiments'; |
| 17 | |
| 18 | function fakeLocalStorage(initial = {}) { |
| 19 | const state = {...initial}; |
| 20 | return { |
| 21 | getItem: (key) => (key in state ? state[key] : null), |
| 22 | setItem: (key, value) => (state[key] = value), |
| 23 | }; |
| 24 | } |
| 25 | |
| 26 | describes.sandboxed('experimentToggles', {}, () => { |
| 27 | it('should return experiment status map', () => { |
no outgoing calls
no test coverage detected