mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
test: update case
This commit is contained in:
parent
fa53a98ccb
commit
cdfbdbac1b
@ -87,9 +87,10 @@ describe('Modal', () => {
|
|||||||
};
|
};
|
||||||
const { container } = render(<Demo />);
|
const { container } = render(<Demo />);
|
||||||
fireEvent.click(container.querySelectorAll('#trigger')[0]);
|
fireEvent.click(container.querySelectorAll('#trigger')[0]);
|
||||||
|
// https://github.com/react-component/dialog/pull/434
|
||||||
expect(
|
expect(
|
||||||
(container.querySelectorAll('.ant-modal')[0] as HTMLDivElement).style.transformOrigin,
|
(container.querySelectorAll('.ant-modal')[0] as HTMLDivElement).style.transformOrigin,
|
||||||
).toBeTruthy();
|
).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('custom mouse position', () => {
|
it('custom mouse position', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user