Skip to content

Commit fc915ca

Browse files
salmanmdanielduan
authored andcommittedOct 24, 2019
expect __docgenInfo to be before the HoC call
1 parent b61f0d4 commit fc915ca

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎test/fixtures/hoc-function/expected.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ TestComponent.propTypes = {
3131
onClick: _propTypes["default"].func
3232
};
3333

34-
var _default = (0, _reactRedux.connect)(_testSelector.mapStateToProps, _testSelector.mapDispatchToProps)(TestComponent);
35-
36-
exports["default"] = _default;
3734
TestComponent.__docgenInfo = {
3835
"description": "",
3936
"methods": [],
@@ -56,10 +53,14 @@ TestComponent.__docgenInfo = {
5653
}
5754
};
5855

56+
var _default = (0, _reactRedux.connect)(_testSelector.mapStateToProps, _testSelector.mapDispatchToProps)(TestComponent);
57+
58+
exports["default"] = _default;
59+
5960
if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
6061
STORYBOOK_REACT_CLASSES["test/fixtures/hoc-function/actual.js"] = {
6162
name: "TestComponent",
6263
docgenInfo: TestComponent.__docgenInfo,
6364
path: "test/fixtures/hoc-function/actual.js"
6465
};
65-
}
66+
}

0 commit comments

Comments
 (0)
Please sign in to comment.