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

test(ush-logo test files): got tests working with store data #1138

Merged
merged 3 commits into from
May 10, 2018

Conversation

crcommons
Copy link
Contributor

This pull request makes the following changes:

  • Made it so that Jest isn't mad at angular and now tests are passing

Testing checklist:

  • Run tests

  • I certify that I ran my checklist

Fixes ushahidi/platform# .

Ping @ushahidi/platform

crcommons added 2 commits May 9, 2018 21:11
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
Copy link
Contributor Author

@crcommons crcommons left a 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 */
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 couldn't figure out how to do this so that the linter wouldn't get mad. @rjmackay do you know what to do here?

@crcommons crcommons requested a review from rjmackay May 10, 2018 03:26
@ushbot ushbot temporarily deployed to rackspace_pr May 10, 2018 03:34 Inactive
@ushbot ushbot temporarily deployed to rackspace_pr May 10, 2018 03:34 Inactive
@rjmackay
Copy link
Contributor

From the jest readme:

The minimum supported Node version is v6.0.0 by default.

Travis only breaks on Node 5. We should just drop support for that and probably add newer version into our matrix too.

Copy link
Contributor

@rjmackay rjmackay left a 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

@ushbot ushbot temporarily deployed to rackspace_pr May 10, 2018 09:33 Inactive
@ushbot ushbot temporarily deployed to rackspace_pr May 10, 2018 09:33 Inactive
@crcommons crcommons merged commit 41e5a4b into add-redux May 10, 2018
@crcommons crcommons deleted the redux-fix-tests branch May 10, 2018 15:59
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.

3 participants