Skip to content

Commit

Permalink
hardcode thanks
Browse files Browse the repository at this point in the history
  • Loading branch information
notwaldorf committed Jul 20, 2017
1 parent a253870 commit 93f117e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emoji-translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ function getAllEmojiForWord(originalWord) {
useful.push('👩‍👩‍👦‍👦');
} else if (word === 'am' || word === 'is' || word === 'are') {
useful.push('👉');
} else if (word === 'thanks') {
useful.push('🙌');
}

for (let emoji in allEmoji) {
Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ test('hard coded words', function(t) {
t.notEqual('i am', translate.translate('i am').trim());
t.notEqual('she he is', translate.translate('she he is').trim());
t.notEqual('we they are', translate.translate('we they are').trim());
t.equal('🙌', translate.translate('thanks').trim());
t.end();
});

Expand Down

0 comments on commit 93f117e

Please sign in to comment.