test: add test for emoji-index.js
parent
6bb1932db8
commit
99eae3605d
|
@ -39,3 +39,13 @@ test('can search for woman-facepalming', () => {
|
|||
'woman-facepalming',
|
||||
])
|
||||
})
|
||||
|
||||
test('emojiIndex exports emojis', () => {
|
||||
const emojis = emojiIndex.emojis
|
||||
expect(emojis['thinking_face'].native).toEqual('\ud83e\udd14')
|
||||
})
|
||||
|
||||
test('emojiIndex exports emoticons', () => {
|
||||
const emoticons = emojiIndex.emoticons
|
||||
expect(emoticons[':)']).toEqual('slightly_smiling_face')
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue