mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
24be945ea8
* fix: Drawer contentWrapperStyle logic * fix: Update style * test: Update snapshot * test: More test case
20 lines
428 B
TypeScript
20 lines
428 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,
|
|
getContainer: false,
|
|
};
|
|
return <MockDrawer {...newProps} />;
|
|
};
|
|
});
|
|
|
|
extendTest('drawer', {
|
|
testingLib: true,
|
|
});
|