(now, fn)
| 24 | } |
| 25 | |
| 26 | function withFixedNow(now, fn) { |
| 27 | const originalNow = Date.now; |
| 28 | Date.now = () => now; |
| 29 | try { |
| 30 | return fn(); |
| 31 | } finally { |
| 32 | Date.now = originalNow; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | function inboundRow({ id, type, text, now }) { |
| 37 | return { |
no test coverage detected