diff --git a/types/linkifyjs/linkifyjs-tests.tsx b/types/linkifyjs/linkifyjs-tests.tsx index fb4b99a72a..6b28d20528 100644 --- a/types/linkifyjs/linkifyjs-tests.tsx +++ b/types/linkifyjs/linkifyjs-tests.tsx @@ -182,39 +182,30 @@ describe("linkifyjs/react", () => { /* A few more test cases */ - let rootElement = document.createElement("div"); - ReactDOM.render( - React.createElement( - Linkify, - {}, - React.createElement("span", "Hello https://google.com") - ), - rootElement - ); + /* Default values for all props */ + { + + Hello https://google.com + + } + + /* Custom class name */ - rootElement = document.createElement("div"); - ReactDOM.render( - React.createElement( - Linkify, - { - options: { - className: "custom-class-name" - } - }, - React.createElement("span", "Hello https://google.com") - ), - rootElement - ); + { + + Hello https://google.com + + } - rootElement = document.createElement("div"); - ReactDOM.render( - React.createElement( - Linkify, - { - tagName: "p" - }, - React.createElement("span", "Hello https://google.com") - ), - rootElement - ); + /* Custom tag name */ + + { + + Hello https://google.com + + } });