Skip to content

Conversation

Scarysize
Copy link
Contributor

No description provided.

@Scarysize
Copy link
Contributor Author

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`';
Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link
Contributor Author

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`'

Copy link
Contributor

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.

Copy link
Contributor Author

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 😒

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