From 37c14186a0628ba84eb2235ab1b078ba64e869fe Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 11 Mar 2024 17:39:40 +0100 Subject: [PATCH] test(Tooltip): add skip --- test/components/Tooltip.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/components/Tooltip.spec.ts diff --git a/test/components/Tooltip.spec.ts b/test/components/Tooltip.spec.ts new file mode 100644 index 00000000..3674bad3 --- /dev/null +++ b/test/components/Tooltip.spec.ts @@ -0,0 +1,12 @@ +import { describe, it, expect } from 'vitest' +import Tooltip, { type TooltipProps } from '../../src/runtime/components/Tooltip.vue' +import ComponentRender from '../component-render' + +describe.skip('Tooltip', () => { + it.each([ + ['with content', { props: { content: 'Tooltip content', defaultOpen: true }, slots: { default: () => 'Hover me' } }] + ])('renders %s correctly', async (nameOrHtml: string, options: { props?: TooltipProps, slots?: any }) => { + const html = await ComponentRender(nameOrHtml, options, Tooltip) + expect(html).toMatchSnapshot() + }) +}) \ No newline at end of file