File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export default function createConnect(React) {
9393 `props of "${ this . constructor . displayName } ". ` +
9494 `Either wrap the root component in a <Provider>, ` +
9595 `or explicitly pass "store" as a prop to "${ this . constructor . displayName } ".`
96- )
96+ ) ;
9797
9898 this . stateProps = computeStateProps ( this . store ) ;
9999 this . dispatchProps = computeDispatchProps ( this . store ) ;
Original file line number Diff line number Diff line change @@ -746,18 +746,18 @@ describe('React', () => {
746746 }
747747 }
748748
749- const decorator = connect ( state => { } ) ;
749+ const decorator = connect ( ( ) => { } ) ;
750750 const Decorated = decorator ( Container ) ;
751751 const expectedError =
752752 `Invariant Violation: Could not find "store" in either the context ` +
753- `or props of "Connect(Container)". Either wrap the root component in a ` +
753+ `or props of "Connect(Container)". Either wrap the root component in a ` +
754754 `<Provider>, or explicitly pass "store" as a prop to "Connect(Container)".` ;
755755
756756 expect ( ( ) => TestUtils . renderIntoDocument ( < Decorated /> ) ) . toThrow ( e => {
757- expect ( e . message ) . toEqual ( expectedError )
758- return true
759- } )
760- } )
757+ expect ( e . message ) . toEqual ( expectedError ) ;
758+ return true ;
759+ } ) ;
760+ } ) ;
761761
762762 it ( 'should return the instance of the wrapped component for use in calling child methods' , ( ) => {
763763 const store = createStore ( ( ) => ( { } ) ) ;
You can’t perform that action at this time.
0 commit comments