2020-06-09 19:29:50 -07:00
|
|
|
import React from 'react';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2020-12-24 21:48:22 -08:00
|
|
|
import { createComponent } from 'soapbox/test_helpers';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
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 = () => {};
|
|
|
|
|
|
|
|
const component = createComponent(children, {}, true);
|
2020-06-09 19:29:50 -07:00
|
|
|
const tree = component.toJSON();
|
|
|
|
expect(tree).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|