Skip to content

Commit 460d951

Browse files
committed
Fix the tests somehow
1 parent 12ef603 commit 460d951

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

test/components/connect.spec.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,15 +1056,14 @@ describe('React', () => {
10561056

10571057
const decorator = connect(() => {});
10581058
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+
);
10681067
});
10691068

10701069
it('should return the instance of the wrapped component for use in calling child methods', () => {

0 commit comments

Comments
 (0)