Skip to content

Commit 8bb6766

Browse files
committed
💚 Fix linting
1 parent 818a3ec commit 8bb6766

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/createConnect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

test/components/connect.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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(() => ({}));

0 commit comments

Comments
 (0)