Skip to content

Commit 271803e

Browse files
committed
test: added snapshot test
1 parent 87b0cd4 commit 271803e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/index.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,18 @@ describe('trim option', () => {
148148
expect(render(reactElement)).toBe(
149149
'<table><tbody><tr><td>\n</td></tr></tbody></table>'
150150
);
151+
expect(reactElement).toMatchInlineSnapshot(`
152+
<table>
153+
<tbody>
154+
<tr>
155+
<td>
156+
157+
158+
</td>
159+
</tr>
160+
</tbody>
161+
</table>
162+
`);
151163
});
152164

153165
it('removes whitespace text nodes when enabled', () => {

0 commit comments

Comments
 (0)