Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit 5162e36

Browse files
committed
Improve selectRouterState test
1 parent 925813b commit 5162e36

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,11 @@ describe('syncReduxAndRouter', () => {
200200
notRouting: routeReducer
201201
}));
202202
const history = createHistory();
203-
expect(
204-
() => syncReduxAndRouter(history, store, state => state.notRouting)
205-
).toNotThrow();
203+
store.dispatch(updatePath('/foo'));
204+
expect(store.getState().notRouting).toEqual({
205+
path: '/foo',
206+
changeId: 2
207+
});
206208
});
207209

208210
it('returns unsubscribe to stop listening to history and store', () => {

0 commit comments

Comments
 (0)