sunrise-sunset: streak emoji
This commit is contained in:
parent
f7235b26cb
commit
98eb5f7c3f
2 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 '🥷';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue