diff --git a/app/soapbox/components/still_image.js b/app/soapbox/components/still_image.js index 1773fc0c3..323960a37 100644 --- a/app/soapbox/components/still_image.js +++ b/app/soapbox/components/still_image.js @@ -54,7 +54,7 @@ class StillImage extends React.PureComponent { const hoverToPlay = this.hoverToPlay(); return ( -
+
{alt} {hoverToPlay && }
diff --git a/app/soapbox/components/ui/avatar/__tests__/avatar.test.tsx b/app/soapbox/components/ui/avatar/__tests__/avatar.test.tsx new file mode 100644 index 000000000..b46e5e029 --- /dev/null +++ b/app/soapbox/components/ui/avatar/__tests__/avatar.test.tsx @@ -0,0 +1,20 @@ +import React from 'react'; + +import { render, screen } from '../../../../jest/test-helpers'; +import Avatar from '../avatar'; + +const src = '/static/alice.jpg'; + +describe('', () => { + it('renders', () => { + render(); + + expect(screen.getByRole('img')).toBeInTheDocument(); + }); + + it('handles size props', () => { + render(); + + expect(screen.getByTestId('still-image-container').getAttribute('style')).toMatch(/50px/i); + }); +});