File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -141,17 +141,20 @@ describe('trim option', () => {
141
141
it ( 'preserves whitespace text nodes when disabled if valid in parent (default)' , ( ) => {
142
142
const html = `<table>
143
143
<tbody>
144
- <tr><td>\n</td><td> </td>\t</tr>\r
144
+ <tr><td>hello</td><td> \n</td><td> </td>\t</tr>\r
145
145
</tbody>
146
146
</table>` ;
147
147
const reactElement = parse ( html ) ;
148
148
expect ( render ( reactElement ) ) . toBe (
149
- '<table><tbody><tr><td>\n</td><td>\u00a0</td></tr></tbody></table>'
149
+ '<table><tbody><tr><td>hello</td><td> \n</td><td>\u00a0</td></tr></tbody></table>'
150
150
) ;
151
151
expect ( reactElement ) . toMatchInlineSnapshot ( `
152
152
<table>
153
153
<tbody>
154
154
<tr>
155
+ <td>
156
+ hello
157
+ </td>
155
158
<td>
156
159
157
160
You can’t perform that action at this time.
0 commit comments