1
1
import { renderHook } from '@testing-library/react' ;
2
- import { UseButtonLinkAriaProps , useButtonLinkAriaProps } from '../useButtonLinkAriaProps ' ;
2
+ import { UseButtonLinkProps , useButtonLinkProps } from '../useButtonLinkProps ' ;
3
3
4
4
describe ( 'useButtonAriaProps' , ( ) => {
5
5
it ( 'should return aria props for anchor tag' , ( ) => {
@@ -9,8 +9,8 @@ describe('useButtonAriaProps', () => {
9
9
isDisabled : false ,
10
10
target : '_blank' ,
11
11
rel : 'noopener' ,
12
- } as UseButtonLinkAriaProps ;
13
- const { result } = renderHook ( ( ) => useButtonLinkAriaProps ( props ) ) ;
12
+ } as UseButtonLinkProps ;
13
+ const { result } = renderHook ( ( ) => useButtonLinkProps ( props ) ) ;
14
14
15
15
expect ( result . current . buttonLinkProps ) . toEqual ( {
16
16
'aria-label' : undefined ,
@@ -30,8 +30,8 @@ describe('useButtonAriaProps', () => {
30
30
isDisabled : true ,
31
31
target : '_blank' ,
32
32
rel : 'noopener' ,
33
- } as UseButtonLinkAriaProps ;
34
- const { result } = renderHook ( ( ) => useButtonLinkAriaProps ( props ) ) ;
33
+ } as UseButtonLinkProps ;
34
+ const { result } = renderHook ( ( ) => useButtonLinkProps ( props ) ) ;
35
35
36
36
expect ( result . current . buttonLinkProps ) . toEqual ( {
37
37
'aria-label' : undefined ,
@@ -48,8 +48,8 @@ describe('useButtonAriaProps', () => {
48
48
const props = {
49
49
elementType : 'button' ,
50
50
isDisabled : false ,
51
- } as unknown as UseButtonLinkAriaProps ;
52
- const { result } = renderHook ( ( ) => useButtonLinkAriaProps ( props ) ) ;
51
+ } as unknown as UseButtonLinkProps ;
52
+ const { result } = renderHook ( ( ) => useButtonLinkProps ( props ) ) ;
53
53
54
54
expect ( result . current . buttonLinkProps ) . toEqual ( {
55
55
'aria-label' : undefined ,
@@ -65,8 +65,8 @@ describe('useButtonAriaProps', () => {
65
65
const props = {
66
66
elementType : 'button' ,
67
67
isDisabled : true ,
68
- } as unknown as UseButtonLinkAriaProps ;
69
- const { result } = renderHook ( ( ) => useButtonLinkAriaProps ( props ) ) ;
68
+ } as unknown as UseButtonLinkProps ;
69
+ const { result } = renderHook ( ( ) => useButtonLinkProps ( props ) ) ;
70
70
71
71
expect ( result . current . buttonLinkProps ) . toEqual ( {
72
72
'aria-label' : undefined ,
0 commit comments