diff --git a/app/soapbox/components/hashtag.tsx b/app/soapbox/components/hashtag.tsx index 06d44d467..c8e45a084 100644 --- a/app/soapbox/components/hashtag.tsx +++ b/app/soapbox/components/hashtag.tsx @@ -42,7 +42,7 @@ const Hashtag: React.FC = ({ hashtag }) => { {hashtag.get('history') && ( -
+
', () => { trends: ImmutableMap({ items: fromJS([{ name: 'hashtag 1', - history: [{ accounts: [] }], + history: [{ + day: '1652745600', + uses: '294', + accounts: '180', + }], }]), }), }; render(, null, store); expect(screen.getByTestId('hashtag')).toHaveTextContent(/hashtag 1/i); + expect(screen.getByTestId('hashtag')).toHaveTextContent(/180 people talking/i); + expect(screen.getByTestId('sparklines')).toBeInTheDocument(); }); it('renders multiple trends', () => {