MCPcopy Create free account
hub / github.com/react-component/tooltip / verifyContent

Function verifyContent

tests/index.test.tsx:5–9  ·  view source on GitHub ↗
(wrapper: HTMLElement, content: string)

Source from the content-addressed store, hash-verified

3import Tooltip, { TooltipRef } from '../src';
4
5const verifyContent = (wrapper: HTMLElement, content: string) => {
6 expect(wrapper.querySelector('.x-content').textContent).toBe(content);
7 fireEvent.click(wrapper.querySelector('.target'));
8 expect(wrapper.querySelector('.rc-tooltip').classList.contains('rc-tooltip-hidden')).toBe(true);
9};
10
11describe('rc-tooltip', () => {
12 window.requestAnimationFrame = window.setTimeout;

Callers 1

index.test.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…