acdlite / redux-router

Redux bindings for React Router – keep your router state inside your Redux store
MIT License
2.3k stars 200 forks source link

Update reduxReactRouter to accept history object #185

Closed Scarysize closed 8 years ago

Scarysize commented 8 years ago

When using history basename function it returns an object. Before this it would only accept a function that returns an object. This update gives users the ability to use other helpers provided by history.

Also update to the tests to account for this new behavior. Most of the tests were kept in this describe block to ensure all other routes stayed the same and that history properly uses the basename for determining root.