Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felldo committed Nov 16, 2024
1 parent 0ce61f1 commit 31cec8e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public void testIfAllEmojisAreUnique() {
}

@Test
public void testIfEmojiAlternativeLanguageIsLoaded() {
assertEquals("Daumen hoch", Emojis.THUMBS_UP.getDescription(EmojiLanguage.DE).orElseThrow(RuntimeException::new));
public void testEmojiLanguageIsLoaded() {
assertEquals("thumbs up", Emojis.THUMBS_UP.getDescription(EmojiLanguage.EN).orElseThrow(RuntimeException::new));
}

@Test
Expand Down Expand Up @@ -153,7 +153,6 @@ public void replaceAllEmojis() {
@Test
public void replaceAllEmojisFunction() {
assertEquals("Hello SMILEYS_AND_EMOTION SMILEYS_AND_EMOTION SMILEYS_AND_EMOTIONSMILEYS_AND_EMOTION World PEOPLE_AND_BODY PEOPLE_AND_BODY SMILEYS_AND_EMOTION", EmojiManager.replaceAllEmojis(SIMPLE_EMOJI_STRING + " 👍 👨🏿‍🦱 😊", emoji -> emoji.getGroup().toString()));
assertEquals("Hello SMILEYS_AND_EMOTION SMILEYS_AND_EMOTION SMILEYS_AND_EMOTIONSMILEYS_AND_EMOTION World PEOPLE_AND_BODY PEOPLE_AND_BODY SMILEYS_AND_EMOTION", EmojiManager.replaceAllEmojis(SIMPLE_EMOJI_STRING + " 👍 👨🏿‍🦱 😊", emoji -> emoji.getDiscordAliases().get(0)));
}

@Test
Expand Down

0 comments on commit 31cec8e

Please sign in to comment.