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,12 +141,12 @@ 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>\t</tr>\r
144
+ <tr><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></tr></tbody></table>'
149
+ '<table><tbody><tr><td>\n</td><td>\u00a0</td>< /tr></tbody></table>'
150
150
) ;
151
151
expect ( reactElement ) . toMatchInlineSnapshot ( `
152
152
<table>
@@ -156,6 +156,9 @@ describe('trim option', () => {
156
156
157
157
158
158
</td>
159
+ <td>
160
+ \u00a0
161
+ </td>
159
162
</tr>
160
163
</tbody>
161
164
</table>
You can’t perform that action at this time.
0 commit comments