ant-design/components/popover/__tests__/demo.test.tsx
lijianan 0b6356d984
chore: rename file .tsx => .ts (#46759)
* chore: rename file .tsx => .ts

* fix: fix

* test: add test case
2024-01-03 08:45:11 +08:00

18 lines
377 B
TypeScript

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('popover', {
testRootProps: false,
});
rootPropsTest(
'popover',
(Popover, props) => (
<Popover {...props} title="Bamboo" content="Little">
<span />
</Popover>
),
{ findRootElements: () => document.querySelector('.ant-popover')! },
);