(threshold: number)
| 13 | } |
| 14 | |
| 15 | function hasRecentInteraction(threshold: number): boolean { |
| 16 | return getTimeSinceLastInteraction() < threshold |
| 17 | } |
| 18 | |
| 19 | function shouldNotify(threshold: number): boolean { |
| 20 | return process.env.NODE_ENV !== 'test' && !hasRecentInteraction(threshold) |
no test coverage detected