mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +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,
|
|
});
|