Skip to content
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

Modify test case ID generation for reducer changing #200

Conversation

iamdustan
Copy link
Contributor

While I was reading through the test cases in the #195 it caught me off guard that the IDs were being reused. This modifies the test case to not reuse IDs so you can follow the flow of where the reducer is swapped with where the next ID appears rather than only the task text string.

@@ -1,10 +1,16 @@
import { ADD_TODO } from './actionTypes';


var id = (state = []) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this to be function nextId(state = []).
Also please run npm run lint to fix the errors.

Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but the I have to write all of return ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@iamdustan iamdustan force-pushed the breaking-changes-test-id-incrementer branch from 4c3101c to 667d8f5 Compare July 1, 2015 15:05
gaearon added a commit that referenced this pull request Jul 1, 2015
…menter

Modify test case ID generation for reducer changing
@gaearon gaearon merged commit 069d641 into reduxjs:breaking-changes-1.0 Jul 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants