Add test for Emoji

This commit is contained in:
Justin 2022-04-05 11:03:57 -04:00
parent 35f878526f
commit 8251af62f2

View file

@ -0,0 +1,12 @@
import React from 'react';
import { render, screen } from '../../../../jest/test-helpers';
import Emoji from '../emoji';
describe('<Emoji />', () => {
it('renders the given text', () => {
render(<Emoji emoji='smile' />);
expect(screen.getByRole('img').getAttribute('alt')).toBe('smile');
});
});