diff --git a/components/_util/__tests__/util.test.tsx b/components/_util/__tests__/util.test.tsx index 35ca704a63..419cc28703 100644 --- a/components/_util/__tests__/util.test.tsx +++ b/components/_util/__tests__/util.test.tsx @@ -152,7 +152,7 @@ describe('Test utils function', () => { describe('TransButton', () => { it('can be focus/blur', () => { - const ref = React.createRef(); + const ref = React.createRef(); render(TransButton); expect(typeof ref.current?.focus).toBe('function'); expect(typeof ref.current?.blur).toBe('function'); diff --git a/components/_util/__tests__/wave.test.tsx b/components/_util/__tests__/wave.test.tsx index 5028b7bcde..e23cf93495 100644 --- a/components/_util/__tests__/wave.test.tsx +++ b/components/_util/__tests__/wave.test.tsx @@ -174,7 +174,7 @@ describe('Wave component', () => { }); it('bindAnimationEvent should return when node is null', () => { - const ref = React.createRef(); + const ref = React.createRef(); render(