File tree Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -99,29 +99,41 @@ const ARROW_NO_PAREN = `
99
99
const CONDITION_SINGLE_LINE = 'foo ? <p>Hello</p> : null;' ;
100
100
101
101
const CONDITION_PAREN = `
102
- foo ? (<div>
103
- <p>Hello</p>
104
- </div>) : null;
102
+ <div>
103
+ {foo ? (<div>
104
+ <p>Hello</p>
105
+ </div>) : null}
106
+ </div>
105
107
` ;
106
108
107
109
const CONDITION_NO_PAREN = `
108
- foo ? <div>
109
- <p>Hello</p>
110
- </div> : null;
110
+ <div>
111
+ {foo ? <div>
112
+ <p>Hello</p>
113
+ </div> : null}
114
+ </div>
111
115
` ;
112
116
113
117
const LOGICAL_SINGLE_LINE = 'foo && <p>Hello</p>;' ;
114
118
115
119
const LOGICAL_PAREN = `
116
- foo && (<div>
117
- <p>Hello</p>
118
- </div>);
120
+ <div>
121
+ {foo &&
122
+ (<div>
123
+ <p>Hello World</p>
124
+ </div>)
125
+ }
126
+ </div>
119
127
` ;
120
128
121
129
const LOGICAL_NO_PAREN = `
122
- foo && <div>
123
- <p>Hello</p>
124
- </div>;
130
+ <div>
131
+ {foo &&
132
+ <div>
133
+ <p>Hello World</p>
134
+ </div>
135
+ }
136
+ </div>
125
137
` ;
126
138
127
139
const ATTR_SINGLE_LINE = '<div attr={<p>Hello</p>}></div>' ;
You can’t perform that action at this time.
0 commit comments