test: update case

This commit is contained in:
wuxh 2024-06-06 23:59:57 +08:00
parent fa53a98ccb
commit cdfbdbac1b
No known key found for this signature in database
GPG Key ID: 4E035332466F0370

View File

@ -87,9 +87,10 @@ describe('Modal', () => {
};
const { container } = render(<Demo />);
fireEvent.click(container.querySelectorAll('#trigger')[0]);
// https://github.com/react-component/dialog/pull/434
expect(
(container.querySelectorAll('.ant-modal')[0] as HTMLDivElement).style.transformOrigin,
).toBeTruthy();
).toBeFalsy();
});
it('custom mouse position', () => {