Skip to content

Commit

Permalink
Add a HOC component use case from #129 to test suit
Browse files Browse the repository at this point in the history
  • Loading branch information
fkling committed Oct 5, 2016
1 parent bc85d58 commit 09fc82f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/__tests__/__snapshots__/main-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ Object {
}
}
`;

exports[`main fixtures processes component "component_3.js" without errors 1`] = `
Object {
"description": "",
"methods": Array [],
"props": Object {
"style": Object {
"description": "",
"required": false,
"type": Object {
"name": "object"
}
}
}
}
`;
13 changes: 13 additions & 0 deletions src/__tests__/fixtures/component_3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React, { PropTypes } from 'react';
import extendStyles from 'enhancers/extendStyles';

const Test = props =>
<div style={props.style}>
Hello world!
</div>;

Test.propTypes = {
style: PropTypes.object,
};

export default extendStyles(Test);

0 comments on commit 09fc82f

Please sign in to comment.