(items: T[])
| 258 | |
| 259 | describe("collectAllLines", () => { |
| 260 | async function* createAsyncGenerator<T>(items: T[]): AsyncGenerator<T> { |
| 261 | for (const item of items) { |
| 262 | yield item; |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | it("should collect all lines from a stream", async () => { |
| 267 | const stream = createAsyncGenerator(["line1", "line2", "line3"]); |
no outgoing calls
no test coverage detected