(records: Record<string, string>[][])
| 438 | |
| 439 | /* Review of K8: one batch of layer 3 read eight continuation pages, and the toolbar stood still for 8 s. */ |
| 440 | const continued = (records: Record<string, string>[][]) => { |
| 441 | const total = records.flat().length; |
| 442 | let at = 0; |
| 443 | return records.map((rows, index) => { |
| 444 | const offset = at; at += rows.length; |
| 445 | return page(rows, { total, offset, ...(index < records.length - 1 ? { nextCursor: `c${index + 1}`, nextOffset: at } : {}) }); |
| 446 | }); |
| 447 | }; |
| 448 | |
| 449 | it('reports progress after every page of a long batch, not only when the batch ends', async () => { |
| 450 | const a = node(1); |
no test coverage detected