Fork of the emoji-button package to remove FontAwesome.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
602 B

import { TinyEmitter as Emitter } from 'tiny-emitter';
import { EmojiContainer } from './emojiContainer';
describe('EmojiContainer', () => {
test('should render all the given emojis', () => {
const emojis = [
{ emoji: '⚡️', version: '12.1', name: 'zap', category: 0 },
{ emoji: '👍', version: '12.1', name: 'thumbs up', category: 0 }
];
const events = new Emitter();
const container = new EmojiContainer(emojis, false, events, {
emojiVersion: '12.1'
}).render();
expect(container.querySelectorAll('.emoji-picker__emoji').length).toBe(2);
});
});