test: add test for emoji-index.js

nolan/test-size
Nolan Lawson 2019-12-24 09:34:29 -08:00
parent 6bb1932db8
commit 99eae3605d
1 changed files with 10 additions and 0 deletions

View File

@ -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')
})