tagHandler - Handle fallback html tag + basic test

Also added preact dep.
Fixed class or function component flowing into tagHandler
This commit is contained in:
2019-12-22 19:54:46 +05:30
parent 736726805d
commit 84a9b387f0
5 changed files with 60 additions and 23 deletions
+6
View File
@@ -251,3 +251,9 @@ test('should render strike (strike, s, del)', () => {
) as string).trim()
).toBe('This ~~is~~ some ~~text~~');
});
test('should render fallback as html tag', () => {
expect((render(<span>some text</span>) as string).trim()).toBe(
'<span>some text</span>'
);
});