(date: Date)
| 90 | } |
| 91 | |
| 92 | function isYesterday(date: Date): boolean { |
| 93 | const yesterday = new Date(); |
| 94 | yesterday.setDate(yesterday.getDate() - 1); |
| 95 | return date.toDateString() === yesterday.toDateString(); |
| 96 | } |
| 97 | |
| 98 | function isWithinWeek(date: Date): boolean { |
| 99 | const weekAgo = new Date(); |
no outgoing calls
no test coverage detected