Skip to content

Commit 09fc82f

Browse files
committed
Add a HOC component use case from #129 to test suit
1 parent bc85d58 commit 09fc82f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/__tests__/__snapshots__/main-test.js.snap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,19 @@ Object {
4040
}
4141
}
4242
`;
43+
44+
exports[`main fixtures processes component "component_3.js" without errors 1`] = `
45+
Object {
46+
"description": "",
47+
"methods": Array [],
48+
"props": Object {
49+
"style": Object {
50+
"description": "",
51+
"required": false,
52+
"type": Object {
53+
"name": "object"
54+
}
55+
}
56+
}
57+
}
58+
`;

src/__tests__/fixtures/component_3.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { PropTypes } from 'react';
2+
import extendStyles from 'enhancers/extendStyles';
3+
4+
const Test = props =>
5+
<div style={props.style}>
6+
Hello world!
7+
</div>;
8+
9+
Test.propTypes = {
10+
style: PropTypes.object,
11+
};
12+
13+
export default extendStyles(Test);

0 commit comments

Comments
 (0)