()
| 119 | describe("streamLines", () => { |
| 120 | it("should split chunks into lines correctly", async () => { |
| 121 | async function* streamCompletion(): AsyncGenerator<string> { |
| 122 | yield "line1\nline"; |
| 123 | yield "2\nline3\n"; |
| 124 | yield "line4"; |
| 125 | } |
| 126 | |
| 127 | const resultLines: string[] = []; |
| 128 | for await (const line of streamLines(streamCompletion())) { |