| 82 | |
| 83 | describe('resuming', () => { |
| 84 | const tour = (steps: number): TourDto => ({ |
| 85 | schemaVersion: 1, |
| 86 | id: 'getting-started', |
| 87 | title: 'Getting started', |
| 88 | generated: { strategy: 'topsort' }, |
| 89 | steps: Array.from({ length: steps }, (_unused, order) => ({ |
| 90 | id: `s${order}`, |
| 91 | title: `s${order}`, |
| 92 | description: '', |
| 93 | order, |
| 94 | primary: { kind: 'file', filePath: `f${order}.ts`, uri: `file:///f${order}.ts` }, |
| 95 | })), |
| 96 | path: '', |
| 97 | }); |
| 98 | const progress = (tourId: string, stepIndex: number): TourProgressDto => ({ |
| 99 | tourId, |
| 100 | stepIndex, |