(controller)
| 512 | const encoder = new TextEncoder(); |
| 513 | const stream = new ReadableStream({ |
| 514 | start(controller) { |
| 515 | controller.enqueue( |
| 516 | encoder.encode("event: text\ndata: {\"chunk\":\"Hello \"}\n\n"), |
| 517 | ); |
| 518 | controller.enqueue( |
| 519 | encoder.encode("event: text\ndata: {\"chunk\":\"world\"}\n\n"), |
| 520 | ); |
| 521 | controller.close(); |
| 522 | }, |
| 523 | }); |
| 524 | |
| 525 | setFetch(async (url) => { |
no test coverage detected