MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / InvalidSelectorTest

Function InvalidSelectorTest

src/test/tooltip-edge-cases.spec.js:122–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 test('tooltip handles invalid selector in DOM mutations', () => {
121 // Create a component with an invalid selector
122 const InvalidSelectorTest = () => {
123 return (
124 <div>
125 <span data-tooltip-id="invalid-selector-test">Hover Me</span>
126 <TooltipController
127 id="invalid-selector-test"
128 content="Invalid Selector Test"
129 anchorSelect="[invalid-selector"
130 />
131 </div>
132 )
133 }
134
135 // Render the component
136 render(<InvalidSelectorTest />)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected