Function
createTooltip
(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) { |
Tested by
no test coverage detected