MCPcopy
hub / github.com/vexip-ui/vexip-ui / createTooltip

Function createTooltip

components/tooltip/tests/tooltip.spec.tsx:14–22  ·  view source on GitHub ↗
(props: InstanceType<typeof Tooltip>['$props'] = {})

Source from the content-addressed store, hash-verified

12 let wrapper: ReturnType<typeof createTooltip> | null
13
14 function createTooltip(props: InstanceType<typeof Tooltip>['$props'] = {}) {
15 return mount(Tooltip, {
16 props,
17 slots: {
18 trigger: () => <span class={'trigger'}>{TEXT}</span>,
19 default: () => <span class={'tip'}>{TEXT}</span>,
20 },
21 })
22 }
23
24 afterEach(() => {
25 if (wrapper) {

Callers 1

tooltip.spec.tsxFile · 0.85

Calls 1

mountFunction · 0.50

Tested by

no test coverage detected