2020-06-09 19:29:50 -07:00
|
|
|
import React from 'react';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-04-04 08:53:47 -07:00
|
|
|
import { render, screen } from '../../jest/test-helpers';
|
2020-06-09 19:29:50 -07:00
|
|
|
import EmojiSelector from '../emoji_selector';
|
|
|
|
|
|
|
|
describe('<EmojiSelector />', () => {
|
|
|
|
it('renders correctly', () => {
|
2021-07-21 07:34:50 -07:00
|
|
|
const children = <EmojiSelector />;
|
|
|
|
children.__proto__.addEventListener = () => {};
|
|
|
|
|
2022-04-04 08:53:47 -07:00
|
|
|
render(children);
|
|
|
|
|
|
|
|
expect(screen.queryAllByRole('button')).toHaveLength(6);
|
2020-06-09 19:29:50 -07:00
|
|
|
});
|
|
|
|
});
|