ant-design/components/tooltip/__tests__/demo.test.tsx

20 lines
397 B
TypeScript
Raw Normal View History

import React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('tooltip', {
testRootProps: false,
skip: ['shift.tsx', 'debug.tsx'],
});
rootPropsTest(
'tooltip',
(Tooltip, props) => (
<Tooltip {...props} title="Bamboo">
<span />
</Tooltip>
),
{
findRootElements: () => document.querySelector('.ant-tooltip')!,
},
);