File tree Expand file tree Collapse file tree 5 files changed +24
-1
lines changed
test/fixtures/variable-assignment Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -63,3 +63,8 @@ const FooExported = () => (
6363) ;
6464
6565FooExported . propTypes = propTypesExported ;
66+
67+ const propTypesCreateClass = { foo : PropTypes . string } ;
68+ const FooCreateClass = createReactClass ( {
69+ propTypes : propTypesCreateClass
70+ } ) ;
Original file line number Diff line number Diff line change @@ -39,3 +39,7 @@ exports.propTypesExported = propTypesExported;
3939var FooExported = function FooExported ( ) {
4040 return React . createElement ( "div" , null ) ;
4141} ;
42+
43+ var FooCreateClass = createReactClass ( {
44+ displayName : "FooCreateClass"
45+ } ) ;
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ export const propTypesExported = {
1717} ;
1818
1919const FooExported = ( ) => < div /> ;
20+
21+ const FooCreateClass = createReactClass ( { } ) ;
Original file line number Diff line number Diff line change @@ -66,4 +66,10 @@ var FooExported = function FooExported() {
6666} ;
6767
6868FooExported . propTypes = process . env . NODE_ENV !== "production" ? propTypesExported : { } ;
69-
69+ var propTypesCreateClass = process . env . NODE_ENV !== "production" ? {
70+ foo : PropTypes . string
71+ } : { } ; ;
72+ var FooCreateClass = createReactClass ( {
73+ displayName : "FooCreateClass" ,
74+ propTypes : propTypesCreateClass
75+ } ) ;
Original file line number Diff line number Diff line change @@ -45,3 +45,9 @@ export const propTypesExported = {
4545const FooExported = ( ) => < div /> ;
4646
4747FooExported . propTypes = process . env . NODE_ENV !== "production" ? propTypesExported : { } ;
48+ const propTypesCreateClass = process . env . NODE_ENV !== "production" ? {
49+ foo : PropTypes . string
50+ } : { } ; ;
51+ const FooCreateClass = createReactClass ( {
52+ propTypes : propTypesCreateClass
53+ } ) ;
You can’t perform that action at this time.
0 commit comments