-
-
Notifications
You must be signed in to change notification settings - Fork 187
Finishing #86 #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finishing #86 #92
Conversation
|
Changes Unknown when pulling c9f12bc on peteruithoven:fix-unit-tests into * on omnidan:master*. |
|
Changes Unknown when pulling b68d07f on peteruithoven:fix-unit-tests into * on omnidan:master*. |
|
I'm ready for feedback. |
test/index.spec.js
Outdated
| expect(decrementedState.future).to.deep.equal(mockInitialState.future) | ||
| const excludedAction = { type: testConfig.FOR_TEST_ONLY_excludedActions[0] } | ||
| const notFilteredReducer = undoable(countReducer, { ...testConfig, filter: null }) | ||
| let expected = notFilteredReducer(mockInitialState, excludedAction) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small detail, but you can do:
{
...notFilteredReducer(mockInitialState, excludedAction),
wasFiltered: true
}|
Changes Unknown when pulling b97d745 on peteruithoven:fix-unit-tests into * on omnidan:master*. |
| // because the action might have been was filtered it won't be added to the future | ||
| if (testConfig && !testConfig.FOR_TEST_ONLY_includeActions) { | ||
| if (incrementedState.past.length > jumpToPastIndex) { | ||
| expect(jumpToPastState.future.length).to.be.above(incrementedState.future.length) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check. Makes sense
More changes to finish #86.