Add test for Emoji
This commit is contained in:
parent
35f878526f
commit
8251af62f2
1 changed files with 12 additions and 0 deletions
12
app/soapbox/components/ui/emoji/__tests__/emoji.test.tsx
Normal file
12
app/soapbox/components/ui/emoji/__tests__/emoji.test.tsx
Normal 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');
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue