( transformer: typeof JsonStringifyStream, chunks: unknown[], expect: string[], options?: StringifyStreamOptions, )
| 7 | } from "./stringify_stream.ts"; |
| 8 | |
| 9 | async function assertValidStringify( |
| 10 | transformer: typeof JsonStringifyStream, |
| 11 | chunks: unknown[], |
| 12 | expect: string[], |
| 13 | options?: StringifyStreamOptions, |
| 14 | ) { |
| 15 | const r = ReadableStream.from(chunks) |
| 16 | .pipeThrough(new transformer(options)); |
| 17 | const res = await Array.fromAsync(r); |
| 18 | assertEquals(res, expect); |
| 19 | } |
| 20 | |
| 21 | async function assertInvalidStringify( |
| 22 | transformer: typeof JsonStringifyStream, |
no test coverage detected