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

21 lines
390 B
TypeScript
Raw Normal View History

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('popconfirm', {
testRootProps: false,
skip: ['shift.tsx'],
});
rootPropsTest(
'popconfirm',
(Popconfirm, props) => (
<Popconfirm {...props}>
<span />
</Popconfirm>
),
{
findRootElements: () => document.querySelector('.ant-popover')!,
},
);