mirror of
https://github.com/bendtherules/react-to-markdown.git
synced 2026-08-18 13:53:11 +00:00
renderer-spec - Add test for h1 basic
This commit is contained in:
@@ -37,3 +37,7 @@ test('should render plain text with simple Class Component', () => {
|
||||
|
||||
expect((render(<TestComponent />) as string).trim()).toBe('abcd');
|
||||
});
|
||||
|
||||
test('should render plain H1 with text', () => {
|
||||
expect((render(<h1>abcd</h1>) as string).trim()).toBe('# abcd');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user