tagHandler - Handle paragraph tag + basic test

This commit is contained in:
2019-12-22 00:14:28 +05:30
parent aed9ea3d87
commit 99ab98b3b9
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -38,6 +38,10 @@ test('should render plain text with simple Class Component', () => {
expect((render(<TestComponent />) as string).trim()).toBe('abcd');
});
test('should render paragraph with plain text', () => {
expect((render(<p>abcd</p>) as string).trim()).toBe('abcd');
});
test('should render plain h1 with text', () => {
expect((render(<h1>abcd</h1>) as string).trim()).toBe('# abcd');
});