Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit de3937c

Browse files
committed
Remove react-dom/server test: first test tests same behavior
1 parent 313ff15 commit de3937c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/Tippy.test.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22
import Tippy from '../src/Tippy'
3-
import ReactDOMServer from 'react-dom/server'
43
import { render, cleanup } from 'react-testing-library'
54

65
afterEach(cleanup)
@@ -115,16 +114,6 @@ describe('<Tippy />', () => {
115114
expect(container.querySelector('button')._tippy).toBeDefined()
116115
})
117116

118-
test('tooltip content is not rendered to the DOM', () => {
119-
expect(
120-
ReactDOMServer.renderToString(
121-
<Tippy content={<div>Tooltip</div>}>
122-
<button />
123-
</Tippy>,
124-
).includes('<div>Tooltip</div>'),
125-
).toBe(false)
126-
})
127-
128117
test('refs are preserved on the child', done => {
129118
class App extends React.Component {
130119
refObject = React.createRef()

0 commit comments

Comments
 (0)