Added some tests

This commit is contained in:
Henry Jameson 2019-03-11 22:41:08 +02:00
parent 47211fb32c
commit 4efcda1b41
2 changed files with 75 additions and 2 deletions

View file

@ -142,7 +142,7 @@ const parseAttachment = (data) => {
return output
}
const addEmojis = (string, emojis) => {
export const addEmojis = (string, emojis) => {
return emojis.reduce((acc, emoji) => {
return acc.replace(
new RegExp(`:${emoji.shortcode}:`, 'g'),