(min: number, max: number)
| 305 | |
| 306 | describe('randomly scheduled pausing', () => { |
| 307 | function rnd(min: number, max: number): number { |
| 308 | return Math.floor(min + (Math.random() * (max - min + 1))); |
| 309 | } |
| 310 | const schedule = Array(rnd(2, 10)).fill(0).map(() => rnd(1, 10) * 100); |
| 311 | const title = schedule.map((v, i) => `${i % 2 ? 'un' : ''}pause ${v}`).join(', '); |
| 312 |