* Get the next day after a given date string (YYYY-MM-DD format).
(dateStr: string)
| 845 | * Get the next day after a given date string (YYYY-MM-DD format). |
| 846 | */ |
| 847 | function getNextDay(dateStr: string): string { |
| 848 | const date = new Date(dateStr) |
| 849 | date.setDate(date.getDate() + 1) |
| 850 | return toDateString(date) |
| 851 | } |
| 852 | |
| 853 | function calculateStreaks(dailyActivity: DailyActivity[]): StreakInfo { |
| 854 | if (dailyActivity.length === 0) { |
no test coverage detected