mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +08:00
19 lines
401 B
TypeScript
19 lines
401 B
TypeScript
|
import * as React from 'react';
|
||
|
import { extendTest } from '../../../tests/shared/demoTest';
|
||
|
|
||
|
jest.mock('rc-drawer', () => {
|
||
|
const Drawer = jest.requireActual('rc-drawer');
|
||
|
const MockDrawer = Drawer.default;
|
||
|
return (props: any) => {
|
||
|
const newProps = {
|
||
|
...props,
|
||
|
open: true,
|
||
|
};
|
||
|
return <MockDrawer {...newProps} />;
|
||
|
};
|
||
|
});
|
||
|
|
||
|
extendTest('drawer', {
|
||
|
testingLib: true,
|
||
|
});
|