Repository navigation
Commit 9b2c1d5
authored
test: check the streamed section pages without copies of what core has
The two tests comparing section-pages' batched output with its whole
input become one: both compared against the same output. core's
collectAsyncGenerator replaces a local copy of it, and html's test gives
section-pages its entries as an array, which it reads as one batch, so
it needs no stream of its own. toBatches' test no longer defines a
generator body it never runs. The comment on section-pages' chunk pages
says batches, as chunk already means a page there.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent a13b6c9 commit 9b2c1d5
4 files changed
Lines changed: 18 additions & 60 deletions
File tree
- packages
- core/src/utils/__tests__
- react/src
- html/__tests__
- section-pages
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 144 | + | |
| 145 | + | |
150 | 146 | | |
151 | 147 | | |
152 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 21 | | |
40 | 22 | | |
41 | 23 | | |
| |||
215 | 197 | | |
216 | 198 | | |
217 | 199 | | |
218 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
219 | 204 | | |
220 | 205 | | |
221 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 11 | | |
27 | 12 | | |
28 | 13 | | |
29 | 14 | | |
30 | 15 | | |
31 | 16 | | |
32 | 17 | | |
33 | | - | |
| 18 | + | |
34 | 19 | | |
35 | 20 | | |
36 | 21 | | |
| |||
282 | 267 | | |
283 | 268 | | |
284 | 269 | | |
285 | | - | |
| 270 | + | |
286 | 271 | | |
287 | 272 | | |
288 | 273 | | |
289 | 274 | | |
290 | 275 | | |
291 | | - | |
292 | 276 | | |
293 | 277 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
306 | 282 | | |
307 | | - | |
| 283 | + | |
308 | 284 | | |
309 | 285 | | |
310 | 286 | | |
| |||
329 | 305 | | |
330 | 306 | | |
331 | 307 | | |
332 | | - | |
| 308 | + | |
333 | 309 | | |
334 | 310 | | |
335 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
0 commit comments