From 8251af62f2e8e0d9868cf1e1bc6dc93b2dd78288 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 5 Apr 2022 11:03:57 -0400 Subject: [PATCH] Add test for Emoji --- .../components/ui/emoji/__tests__/emoji.test.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/soapbox/components/ui/emoji/__tests__/emoji.test.tsx diff --git a/app/soapbox/components/ui/emoji/__tests__/emoji.test.tsx b/app/soapbox/components/ui/emoji/__tests__/emoji.test.tsx new file mode 100644 index 0000000000..0f65103d8e --- /dev/null +++ b/app/soapbox/components/ui/emoji/__tests__/emoji.test.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +import { render, screen } from '../../../../jest/test-helpers'; +import Emoji from '../emoji'; + +describe('', () => { + it('renders the given text', () => { + render(); + + expect(screen.getByRole('img').getAttribute('alt')).toBe('smile'); + }); +});