mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
ac5a06027e
This reverts commit ea8ed28209
.
20 lines
402 B
TypeScript
20 lines
402 B
TypeScript
import * as 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')!,
|
|
},
|
|
);
|