Decouple auth states from routing redux state

This commit is contained in:
SleepWalker
2016-06-15 09:02:12 +03:00
parent 0b1a50f788
commit baacadad31
9 changed files with 30 additions and 34 deletions

View File

@@ -30,10 +30,6 @@ describe('AuthFlow.functional', () => {
flow.setStore(store);
navigate = function navigate(url) { // emulates router behaviour
state.routing = state.routing || {};
state.routing.location = state.routing.location || {};
state.routing.location.pathname = url;
if (navigate.lastUrl !== url) {
navigate.lastUrl = url;
flow.handleRequest(url, navigate);