mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
deps: bump rc-dialog to 9.5.1 (#49284)
* deps: bump rc-dialog to 9.5.1
* chore: update
* chore(deps): bump rc-image to 7.9.0
* test: update case
* Revert "test: update case"
This reverts commit cdfbdbac1b
.
* test: update case
Co-authored-by: zombieJ <zombieJ@users.noreply.github.com>
* empty
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: zombieJ <zombieJ@users.noreply.github.com>
This commit is contained in:
parent
c105f2e84b
commit
d66ed648a1
@ -5,7 +5,7 @@ import Modal from '..';
|
||||
import { resetWarned } from '../../_util/warning';
|
||||
import mountTest from '../../../tests/shared/mountTest';
|
||||
import rtlTest from '../../../tests/shared/rtlTest';
|
||||
import { fireEvent, render } from '../../../tests/utils';
|
||||
import { createEvent, fireEvent, render } from '../../../tests/utils';
|
||||
|
||||
jest.mock('rc-util/lib/Portal');
|
||||
|
||||
@ -86,7 +86,12 @@ describe('Modal', () => {
|
||||
);
|
||||
};
|
||||
const { container } = render(<Demo />);
|
||||
fireEvent.click(container.querySelectorAll('#trigger')[0]);
|
||||
const triggerEle = container.querySelectorAll('#trigger')[0];
|
||||
const clickEvent = createEvent.click(triggerEle) as any;
|
||||
clickEvent.pageX = 100;
|
||||
clickEvent.pageY = 100;
|
||||
fireEvent(triggerEle, clickEvent);
|
||||
|
||||
expect(
|
||||
(container.querySelectorAll('.ant-modal')[0] as HTMLDivElement).style.transformOrigin,
|
||||
).toBeTruthy();
|
||||
|
@ -133,11 +133,11 @@
|
||||
"rc-cascader": "~3.26.0",
|
||||
"rc-checkbox": "~3.3.0",
|
||||
"rc-collapse": "~3.7.3",
|
||||
"rc-dialog": "~9.4.0",
|
||||
"rc-dialog": "~9.5.2",
|
||||
"rc-drawer": "~7.2.0",
|
||||
"rc-dropdown": "~4.2.0",
|
||||
"rc-field-form": "~2.2.0",
|
||||
"rc-image": "~7.8.1",
|
||||
"rc-image": "~7.9.0",
|
||||
"rc-input": "~1.5.1",
|
||||
"rc-input-number": "~9.1.0",
|
||||
"rc-mentions": "~2.14.0",
|
||||
|
Loading…
Reference in New Issue
Block a user