Closed aweary closed 6 years ago
Merging #240 into master will increase coverage by
<.01%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #240 +/- ##
==========================================
+ Coverage 98.44% 98.44% +<.01%
==========================================
Files 19 19
Lines 257 258 +1
==========================================
+ Hits 253 254 +1
Misses 4 4
Impacted Files | Coverage Δ | |
---|---|---|
src/enhancer.js | 94.44% <100%> (+0.32%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2dbd876...1a4e2b5. Read the comment docs.
Second part of the fix outlined in https://github.com/FormidableLabs/redux-little-router/issues/211#issuecomment-338770696
@tptee I couldn't figure out an easy way to test this.
enhancer.spec.js
is mockingdispatch
for the store created by thecreateStore
call in the test file, but it isn't mocking the store that's creating inside the enhancer. To test this we'd probably want to somehow mock that internal store and assert that it's dispatching the correct payload forPOP
actions, but I can't figure out a clean way to do that 🤔 Thathistory.listen
callback depends on the dynamiccurrentMatcher
variable in the parent scope so refactoring is kind of tricky.