export default () => ({
  persist: jest.fn(),
  restore: jest.fn(() => ({
    authenticated: {
      authenticator: 'test'
    }
  }))
})

const dummyData = {
  authenticated: {
    authenticator: 'test'
  }
}

export default (data = dummyData) => ({
  persist: jest.fn(),
  restore: jest.fn(() => data)
})

Allow test storage to mock dummy data on restore
Allow test storage to mock dummy data on restore
