@@ -50,8 +50,8 @@ describe('GeneralCompliantComponent', () => {
5050
5151 it ( 'renders the correct icon structure' , ( ) => {
5252 const { container } = render ( < GeneralCompliantComponent { ...baseProps } /> )
53- const svgs = container . querySelectorAll ( 'svg' )
54- expect ( svgs ) . toHaveLength ( 2 )
53+ const icons = container . querySelectorAll ( 'svg' )
54+ expect ( icons ) . toHaveLength ( 2 )
5555 } )
5656
5757 it ( 'renders tooltip wrapper with title attribute' , ( ) => {
@@ -68,10 +68,10 @@ describe('GeneralCompliantComponent', () => {
6868
6969 it ( 'has accessible SVG icons' , ( ) => {
7070 const { container } = render ( < GeneralCompliantComponent { ...baseProps } /> )
71- const svgs = container . querySelectorAll ( 'svg[role="img"]' )
72- expect ( svgs ) . toHaveLength ( 2 )
73- expect ( svgs [ 0 ] ) . toHaveAttribute ( 'aria-hidden' , 'true' )
74- expect ( svgs [ 1 ] ) . toHaveAttribute ( 'aria-hidden' , 'true' )
71+ const icons = container . querySelectorAll ( 'svg[role="img"]' )
72+ expect ( icons ) . toHaveLength ( 2 )
73+ expect ( icons [ 0 ] ) . toHaveAttribute ( 'aria-hidden' , 'true' )
74+ expect ( icons [ 1 ] ) . toHaveAttribute ( 'aria-hidden' , 'true' )
7575 } )
7676
7777 it ( 'renders with custom icon' , ( ) => {
0 commit comments