-
Notifications
You must be signed in to change notification settings - Fork 200
Refactor/use babel 6 #269
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
base: master
Are you sure you want to change the base?
Refactor/use babel 6 #269
Conversation
CC @mjrussell |
'or a class/function (for composite components) but got: object. ' + | ||
'Check the render method of `ReduxRouterContext`.'; | ||
|
||
const routingContextInvalidPropErrorMessage = 'Invalid prop `RoutingContext` of type `object` supplied to `ReduxRouterContext`'; |
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.
@halt-hammerzeit I had to remove this error message after the babel6 update. Could you take look?
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.
@Scarysize don't know why is that. if you redid npm install
then maybe React got updated to 15.3
https://twitter.com/reactjs/status/759099486513704961
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.
No npm ls | grep react
shows me [email protected]
. Seems to be the correct minor version.
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.
@Scarysize So what is the error message now?
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.
Basically the two other Strings the test checks for.
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.
@Scarysize I meant what was the error message in your terminal when running tests before you removed the lines
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.
AssertionError: expected 'Warning: Failed propType: Invalid prop `RoutingContext` of type `object` supplied to `Connect(ReduxRouterContext)`, expected `function`. Check the render method of `ReduxRouter`.' to include 'Invalid prop `RoutingContext` of type `object` supplied to `ReduxRouterContext`'
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.
@Scarysize Well then why do you ask me in the first place and also delete the test line when it tells you in plain English what needs to be corrected.
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.
I wanted your opinion on the matter, because you added the test. I don't want to blindly remove stuff from tests, just to make them pass.
Sorry to waste your precious time 😒
No description provided.