16 lines
411 B
TypeScript
16 lines
411 B
TypeScript
import React from 'react';
|
|
|
|
import { render, screen } from '../../jest/test-helpers';
|
|
import EmojiSelector from '../emoji-selector';
|
|
|
|
describe('<EmojiSelector />', () => {
|
|
it('renders correctly', () => {
|
|
const children = <EmojiSelector />;
|
|
// @ts-ignore
|
|
children.__proto__.addEventListener = () => {};
|
|
|
|
render(children);
|
|
|
|
expect(screen.queryAllByRole('button')).toHaveLength(6);
|
|
});
|
|
});
|