import test from 'tape'
import { browserHistory } from 'react-router'

import createConfigureStore from './index'

test('create store with default options should export two states', (t) => {
  global.window = {}
  const store = createConfigureStore()
  const state = store.getState()
  t.deepEqual(Object.keys(state).sort(), ['repository', 'user'])
  global.window = undefined
  t.end()
})

test('create store with intiial state should overwrite default states', (t) => {
  global.window = {}
  const store = createConfigureStore(browserHistory, { repository: { foo: 'bar' } })
  const state = store.getState()
  t.deepEqual(state.repository.foo, 'bar')
  global.window = undefined
  t.end()
})

@@ -332,16 +332,27 @@
 sitory',
+ 'session',
  'user'%5D

Fix tests