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) {
93
93
`props of "${ this . constructor . displayName } ". ` +
94
94
`Either wrap the root component in a <Provider>, ` +
95
95
`or explicitly pass "store" as a prop to "${ this . constructor . displayName } ".`
96
- )
96
+ ) ;
97
97
98
98
this . stateProps = computeStateProps ( this . store ) ;
99
99
this . dispatchProps = computeDispatchProps ( this . store ) ;
Original file line number Diff line number Diff line change @@ -746,18 +746,18 @@ describe('React', () => {
746
746
}
747
747
}
748
748
749
- const decorator = connect ( state => { } ) ;
749
+ const decorator = connect ( ( ) => { } ) ;
750
750
const Decorated = decorator ( Container ) ;
751
751
const expectedError =
752
752
`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 ` +
754
754
`<Provider>, or explicitly pass "store" as a prop to "Connect(Container)".` ;
755
755
756
756
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
+ } ) ;
761
761
762
762
it ( 'should return the instance of the wrapped component for use in calling child methods' , ( ) => {
763
763
const store = createStore ( ( ) => ( { } ) ) ;
You can’t perform that action at this time.
0 commit comments