Created
September 14, 2018 13:02
-
-
Save bobsilverberg/4c2a22d2956a5aa3ca0d8a190e005459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
● /Users/bsilverberg/Documents/gitRepos/addons-frontend/tests/unit/amo/components/TestAddonReviewCard.js › byLine › renders a byLine with an author by default | |
Invariant Violation: Could not find "store" in either the context or props of "Connect(LinkBase)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(LinkBase)". | |
934 | describe('byLine', () => { | |
935 | function renderByLine(root) { | |
> 936 | return shallow(root.find(UserReview).prop('byLine')); | |
| ^ | |
937 | } | |
938 | | |
939 | it('renders a byLine with an author by default', () => { | |
at invariant (node_modules/invariant/invariant.js:40:15) | |
at new Connect (node_modules/react-redux/lib/components/connectAdvanced.js:134:33) | |
at ReactShallowRenderer.render (node_modules/enzyme-adapter-react-16/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js:123:26) | |
at node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:410:35 | |
at withSetStateAllowed (node_modules/enzyme-adapter-utils/build/Utils.js:132:16) | |
at Object.render (node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:409:68) | |
at new ShallowWrapper (node_modules/enzyme/build/ShallowWrapper.js:196:22) | |
at shallow (node_modules/enzyme/build/shallow.js:21:10) | |
at renderByLine (tests/unit/amo/components/TestAddonReviewCard.js:936:14) | |
at Object.<anonymous> (tests/unit/amo/components/TestAddonReviewCard.js:947:14) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment