diff --git a/components/button/__tests__/index.test.tsx b/components/button/__tests__/index.test.tsx index 4e6216ca5b..496de4d8c8 100644 --- a/components/button/__tests__/index.test.tsx +++ b/components/button/__tests__/index.test.tsx @@ -343,4 +343,15 @@ describe('Button', () => { ); expect(window.getComputedStyle(container.querySelector('#link')!).pointerEvents).toBe('none'); }); + + it('Correct type', () => { + const onBtnClick: React.MouseEventHandler = () => {}; + const onAnchorClick: React.MouseEventHandler = () => {}; + + const button = )}