Skip to content

Conversation

@rschamp
Copy link
Contributor

@rschamp rschamp commented Oct 11, 2018

Resolves

What Github issue does this resolve (please include link)?

Proposed Changes

Describe what this Pull Request does
Adds tests for some of the new higher order components added in #3303

Reason for Changes

Explain why these changes should be made
We should make sure the things we add work the way we expect

Test Coverage

Please show how you have added tests to cover your changes
These are tests!

Browser Coverage

N/A

Ray Schamp added 3 commits October 11, 2018 18:21
This ensures that the reducer is actually called with the project data that storage loaded
benjiwheeler
benjiwheeler previously approved these changes Oct 12, 2018
Copy link
Contributor

@benjiwheeler benjiwheeler left a comment

Choose a reason for hiding this comment

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

LGTM! Just suggesting we might comment about mergeprops -- why we chose that particular order.

Also I tested these tests.

onLoadedProject: loadingState => dispatch(onLoadedProject(loadingState))
});

const mergeProps = (stateProps, dispatchProps, ownProps) => Object.assign(

This comment was marked as abuse.

@rschamp rschamp merged commit 03b440b into scratchfoundation:develop Oct 15, 2018
@rschamp rschamp deleted the hoc-tests branch October 15, 2018 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make tests for project state-related higher order components

2 participants