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

18 lines
377 B
TypeScript
Raw Normal View History

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')! },
);