mirror of
https://github.com/bendtherules/react-to-markdown.git
synced 2026-08-18 13:53:11 +00:00
tagHandler - Handle fallback html tag + basic test
Also added preact dep. Fixed class or function component flowing into tagHandler
This commit is contained in:
@@ -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>'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user