(tourId: string, stepIndex: number)
| 96 | path: '', |
| 97 | }); |
| 98 | const progress = (tourId: string, stepIndex: number): TourProgressDto => ({ |
| 99 | tourId, |
| 100 | stepIndex, |
| 101 | updatedAt: '2026-08-28T00:00:00.000Z', |
| 102 | }); |
| 103 | |
| 104 | it('offers the step the reader last arrived at', () => { |
| 105 | expect(resumeStep(tour(6), progress('getting-started', 3))).toBe(3); |