mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
73b3c7828d
* fix: Drawer add motion deadline * test: Update snapshot * test: ignore motion in snapshot render
22 lines
472 B
TypeScript
22 lines
472 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,
|
|
maskMotion: null,
|
|
motion: null,
|
|
};
|
|
return <MockDrawer {...newProps} />;
|
|
};
|
|
});
|
|
|
|
extendTest('drawer', {
|
|
testingLib: true,
|
|
});
|