8f0bd2616 days ago17 lines · 679 B| 1 | import { buffer } from 'node:stream/consumers'; |
| 2 | import { describe, expect |
| 3 | |
| 4 | import { bufferBody } |
| 5 | |
| 6 | describe('bufferBody', () |
| 7 | it('reads from an offset as a single chunk', |
| 8 | const body = |
| 9 | await expect(buffer |
| 10 | expect(await body |
| 11 | }); |
| 12 | |
| 13 | it('emits no chunk at all when nothing is left to read', |
| 14 | expect(await bufferBody |
| 15 | expect(await bufferBody |
| 16 | }); |
| 17 | }); |