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);
|
const emojiVisualisation = calculator.getEmojiForHistory(correctDays, incorrectDays);
|
||||||
|
|
||||||
// THEN
|
// THEN
|
||||||
expect(emojiVisualisation).toBe('🌞🌚');
|
expect(emojiVisualisation).toBe('🎉💔');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should handle a missing day`, () => {
|
it(`should handle a missing day`, () => {
|
||||||
|
|
@ -127,7 +127,7 @@ describe('SunriseSunsetStreakCalculator', () => {
|
||||||
const emojiVisualisation = calculator.getEmojiForHistory(correctDays, incorrect);
|
const emojiVisualisation = calculator.getEmojiForHistory(correctDays, incorrect);
|
||||||
|
|
||||||
// THEN
|
// THEN
|
||||||
expect(emojiVisualisation).toBe('🌚🌞🌞🥷🌚');
|
expect(emojiVisualisation).toBe('💔🎉🎉🥷💔');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should get a fully shareable streak when all things are empty`, () => {
|
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);
|
const shareableStatement = calculator.getShareableStatement(correctDays, incorrectDays, today);
|
||||||
|
|
||||||
// THEN
|
// 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);
|
expect(shareableStatement).toStrictEqual(expected);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ class SunriseSunsetDayGuess {
|
||||||
private static getEmojiForGuessType(guessType: GuessType): string {
|
private static getEmojiForGuessType(guessType: GuessType): string {
|
||||||
switch (guessType) {
|
switch (guessType) {
|
||||||
case GuessType.correct:
|
case GuessType.correct:
|
||||||
return '🌞';
|
return '🎉';
|
||||||
case GuessType.incorrect:
|
case GuessType.incorrect:
|
||||||
return '🌚';
|
return '💔';
|
||||||
case GuessType.missing:
|
case GuessType.missing:
|
||||||
return '🥷';
|
return '🥷';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue