(context: { isReading: boolean; isEvening: boolean })
| 2 | |
| 3 | const rolls = Array.from({ length: 200 }, (_, index) => index / 200); |
| 4 | const share = (context: { isReading: boolean; isEvening: boolean }) => { |
| 5 | const counts: Record<string, number> = {}; |
| 6 | rolls.forEach((roll) => { |
| 7 | const name = pickPatchyIdleAction(roll, context); |
| 8 | counts[name] = (counts[name] ?? 0) + 1; |
| 9 | }); |
| 10 | return counts; |
| 11 | }; |
| 12 | |
| 13 | describe('pickPatchyIdleAction', () => { |
| 14 | it('mostly reads along while a post is open', () => { |
no test coverage detected