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

12 lines
315 B
TypeScript
Raw Normal View History

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('modal', {
testRootProps: false,
});
rootPropsTest('modal', (Modal, props) => <Modal {...props} />, {
findRootElements: () => document.querySelectorAll('.ant-modal-root'),
expectCount: 1,
});