renderer-spec - Format

This commit is contained in:
2019-12-21 15:10:25 +05:30
parent e26aae2c6c
commit 52523e014b
+7 -1
View File
@@ -67,5 +67,11 @@ test('should render plain em with text', () => {
}); });
test('should render H1 with mixed strong and em text', () => { test('should render H1 with mixed strong and em text', () => {
expect((render(<h1>This is <strong>Hello</strong> <em>World</em></h1>) as string).trim()).toBe('# This is **Hello** _World_'); expect(
(render(
<h1>
This is <strong>Hello</strong> <em>World</em>
</h1>
) as string).trim()
).toBe('# This is **Hello** _World_');
}); });