Browse code
prettify action-router
Showing 1 changed files
... | ... |
@@ -141,9 +141,7 @@ it("router doees not dispatch an action from url change that is caused by action |
141 | 141 |
["/somewhere/:id/:view", actionType, {}], |
142 | 142 |
["/somewhere/:id/default", actionType, { view: "home" }] |
143 | 143 |
]; |
144 |
- const { store, actionsDispatched } = setupTest( |
|
145 |
- routesConfig |
|
146 |
- ); |
|
144 |
+ const { store, actionsDispatched } = setupTest(routesConfig); |
|
147 | 145 |
|
148 | 146 |
// when |
149 | 147 |
store.dispatch(action); |
... | ... |
@@ -160,11 +158,10 @@ it("popstate doesn't cause a pushstate", () => { |
160 | 158 |
["/somewhere/:id/default", actionType, { view: "home" }] |
161 | 159 |
]; |
162 | 160 |
|
163 |
- const { |
|
164 |
- urlChanges, |
|
165 |
- init, |
|
166 |
- window |
|
167 |
- } = setupTest(routesConfig, "/somewhere/foo/default"); |
|
161 |
+ const { urlChanges, init, window } = setupTest( |
|
162 |
+ routesConfig, |
|
163 |
+ "/somewhere/foo/default" |
|
164 |
+ ); |
|
168 | 165 |
|
169 | 166 |
init(); |
170 | 167 |
window.history.pushState({}, "", "/somwhere/bar/default"); |