export default (initialData = {}) => {
  let data = initialData

  return {
    reset: () => (data = initialData),
    getData: () => data,
    persist: d => (data = d),
    restore: jest.fn(() => data)
  }
}

export default (initialData = {}) => {
  let data = initialData

  return {
    reset: () => (data = initialData),
    getData: () => data,
    persist: d => (data = d),
    restore: () => data
  }
}

Remove mock around test storage restore
Remove mock around test storage restore
