@@ -16,21 +16,21 @@ describe('Avatar', () => {
1616 } )
1717
1818 it ( 'should have no axe violations' , async ( ) => {
19- const { container} = HTMLRender ( < Avatar /> )
19+ const { container} = HTMLRender ( < Avatar src = "primer.png" /> )
2020 const results = await axe ( container )
2121 expect ( results ) . toHaveNoViolations ( )
2222 cleanup ( )
2323 } )
2424
2525 it ( 'renders small by default' , ( ) => {
2626 const size = 20
27- const result = render ( < Avatar alt = " " /> )
27+ const result = render ( < Avatar src = "primer.png " /> )
2828 expect ( result . props . width ) . toEqual ( size )
2929 expect ( result . props . height ) . toEqual ( size )
3030 } )
3131
3232 it ( 'respects the size prop' , ( ) => {
33- const result = render ( < Avatar size = { 40 } alt = "github" /> )
33+ const result = render ( < Avatar size = { 40 } src = "primer.png" alt = "github" /> )
3434 expect ( result . props . width ) . toEqual ( 40 )
3535 expect ( result . props . height ) . toEqual ( 40 )
3636 } )
@@ -40,6 +40,6 @@ describe('Avatar', () => {
4040 } )
4141
4242 it ( 'respects margin props' , ( ) => {
43- expect ( render ( < Avatar m = { 2 } alt = "" /> ) ) . toHaveStyleRule ( 'margin' , px ( theme . space [ 2 ] ) )
43+ expect ( render ( < Avatar m = { 2 } src = "primer.png" alt = "" /> ) ) . toHaveStyleRule ( 'margin' , px ( theme . space [ 2 ] ) )
4444 } )
4545} )
0 commit comments