mirror of
https://github.com/bendtherules/react-to-markdown.git
synced 2026-08-18 13:53:11 +00:00
renderer-spec - Fix workaround comment
This commit is contained in:
@@ -20,7 +20,7 @@ test('should render plain text with simple Function Component', () => {
|
|||||||
return 'abcd';
|
return 'abcd';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: Rendering string from JSX shows TS error (https://github.com/DefinitelyTyped/DefinitelyTyped/issues/20544). This is a workaround.
|
// Note: Rendering string from function comp shows TS error (https://github.com/DefinitelyTyped/DefinitelyTyped/issues/20544). This is a workaround.
|
||||||
expect(
|
expect(
|
||||||
(render(
|
(render(
|
||||||
React.createElement((TestComponent as unknown) as React.FunctionComponent)
|
React.createElement((TestComponent as unknown) as React.FunctionComponent)
|
||||||
|
|||||||
Reference in New Issue
Block a user