From 4d254b9d090376b0380b20c7e44a40f93c18bbfa Mon Sep 17 00:00:00 2001 From: Leo Salgueiro Date: Mon, 28 Jan 2019 18:33:37 -0800 Subject: [PATCH] fixing the test --- .../react-highlight-words/react-highlight-words-tests.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/react-highlight-words/react-highlight-words-tests.tsx b/types/react-highlight-words/react-highlight-words-tests.tsx index de63c6d9ec..db8389fe9f 100644 --- a/types/react-highlight-words/react-highlight-words-tests.tsx +++ b/types/react-highlight-words/react-highlight-words-tests.tsx @@ -6,17 +6,20 @@ const findChunks = ({ textToHighlight }: FindChunks) => []; +const CustomHighlight: React.FC = ({children}) => ({children}) + class HighlighterTest extends React.Component { render() { return (
text} searchWords={["el", "or"]} textToHighlight="Hello World"