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.
16 lines
501 B
16 lines
501 B
const Emitter = require('tiny-emitter');
|
|
|
|
const { EmojiContainer } = require('./emojiContainer');
|
|
|
|
describe('EmojiContainer', () => {
|
|
test('should render all the given emojis', () => {
|
|
const emojis = [{ e: '⚡️', ver: '12.1' }, { e: '👍', ver: '12.1' }];
|
|
|
|
const events = new Emitter();
|
|
|
|
const container = new EmojiContainer(emojis, false, events, {
|
|
emojiVersion: '12.1'
|
|
}).render();
|
|
expect(container.querySelectorAll('.emoji-picker__emoji').length).toBe(2);
|
|
});
|
|
});
|
|
|