renderer-spec - Test blockquote with mixed text

This commit is contained in:
2019-12-22 00:14:48 +05:30
parent 99ab98b3b9
commit 0a8aff6ba0
+9
View File
@@ -166,3 +166,12 @@ test('should render blockquote with plain text', () => {
);
});
test('should render blockquote with mixed text', () => {
expect(
(render(
<blockquote>
<p>This is <em>hello</em> <strong>world</strong></p>
</blockquote>
) as string).trim()
).toBe('> This is _hello_ **world**');
});