(task: TaskInfo)
| 116 | ]; |
| 117 | |
| 118 | const getActiveSession = (task: TaskInfo): TimeEntry | null => { |
| 119 | if (task.path === '/tasks/1.md') { |
| 120 | return { startTime: tenMinutesAgo }; |
| 121 | } |
| 122 | if (task.path === '/tasks/2.md') { |
| 123 | return { startTime: twentyMinutesAgo }; |
| 124 | } |
| 125 | return null; |
| 126 | }; |
| 127 | |
| 128 | const result = computeActiveTimeSessions(tasks, getActiveSession); |
| 129 |
no outgoing calls
no test coverage detected