sunrise-sunset: streak emoji

This commit is contained in:
Thomas 2023-01-31 22:57:16 +00:00
parent f7235b26cb
commit 98eb5f7c3f
2 changed files with 5 additions and 5 deletions

View file

@ -115,7 +115,7 @@ describe('SunriseSunsetStreakCalculator', () => {
const emojiVisualisation = calculator.getEmojiForHistory(correctDays, incorrectDays);
// THEN
expect(emojiVisualisation).toBe('🌞🌚');
expect(emojiVisualisation).toBe('🎉💔');
});
it(`should handle a missing day`, () => {
@ -127,7 +127,7 @@ describe('SunriseSunsetStreakCalculator', () => {
const emojiVisualisation = calculator.getEmojiForHistory(correctDays, incorrect);
// THEN
expect(emojiVisualisation).toBe('🌚🌞🌞🥷🌚');
expect(emojiVisualisation).toBe('💔🎉🎉🥷💔');
});
it(`should get a fully shareable streak when all things are empty`, () => {
@ -154,7 +154,7 @@ describe('SunriseSunsetStreakCalculator', () => {
const shareableStatement = calculator.getShareableStatement(correctDays, incorrectDays, today);
// THEN
const expected = `Sunrise, Sunset?\n2023-01-31\n🌞🥷🥷🌚🌞🌞\nCurrent Streak: 1\nLongest Streak: 2`;
const expected = `Sunrise, Sunset?\n2023-01-31\n🎉🥷🥷💔🎉🎉\nCurrent Streak: 1\nLongest Streak: 2`;
expect(shareableStatement).toStrictEqual(expected);
});
});

View file

@ -13,9 +13,9 @@ class SunriseSunsetDayGuess {
private static getEmojiForGuessType(guessType: GuessType): string {
switch (guessType) {
case GuessType.correct:
return '🌞';
return '🎉';
case GuessType.incorrect:
return '🌚';
return '💔';
case GuessType.missing:
return '🥷';
}