File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1056,15 +1056,14 @@ describe('React', () => {
1056
1056
1057
1057
const decorator = connect ( ( ) => { } ) ;
1058
1058
const Decorated = decorator ( Container ) ;
1059
- const expectedError =
1060
- `Invariant Violation: Could not find "store" in either the context ` +
1061
- `or props of "Connect(Container)". Either wrap the root component in a ` +
1062
- `<Provider>, or explicitly pass "store" as a prop to "Connect(Container)".` ;
1063
-
1064
- expect ( ( ) => TestUtils . renderIntoDocument ( < Decorated /> ) ) . toThrow ( e => {
1065
- expect ( e . message ) . toEqual ( expectedError ) ;
1066
- return true ;
1067
- } ) ;
1059
+
1060
+ expect ( ( ) =>
1061
+ TestUtils . renderIntoDocument ( < Decorated /> )
1062
+ ) . toThrow (
1063
+ 'Invariant Violation: Could not find "store" in either the context ' +
1064
+ 'or props of "Connect(Container)". Either wrap the root component in a ' +
1065
+ '<Provider>, or explicitly pass "store" as a prop to "Connect(Container)".'
1066
+ ) ;
1068
1067
} ) ;
1069
1068
1070
1069
it ( 'should return the instance of the wrapped component for use in calling child methods' , ( ) => {
You can’t perform that action at this time.
0 commit comments