-
Notifications
You must be signed in to change notification settings - Fork 191
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
test(ush-logo test files): got tests working with store data #1138
Conversation
Made it so that Jest isn't mad at angular and now tests are passing
Checking for store and reassigning props broke connect component; removed and just using plain component instead
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'm getting this error in the console, although everything is working. Not sure how to resolve it.
Warning: Failed prop type: The prop forms
is marked as required in ConnectedComponentWithStore
, but its value is undefined
.
in ConnectedComponentWithStore
return <ConnectedWrappedComponent store={store} {...props} />; | ||
if (!props.store) { | ||
const injector = angular.element(document).injector(); | ||
/* eslint-disable no-param-reassign */ |
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 couldn't figure out how to do this so that the linter wouldn't get mad. @rjmackay do you know what to do here?
From the jest readme:
Travis only breaks on Node 5. We should just drop support for that and probably add newer version into our matrix too. |
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.
LGTM - we just need to change what version of node travis runs
This pull request makes the following changes:
Testing checklist:
Run tests
I certify that I ran my checklist
Fixes ushahidi/platform# .
Ping @ushahidi/platform