()
| 9 | export { test }; |
| 10 | |
| 11 | async function test() { |
| 12 | zip.configure({ chunkSize: 256 }); |
| 13 | const zipStream = new TransformStream(); |
| 14 | const zipWriter = new zip.ZipWriter(zipStream); |
| 15 | zipWriter.add(FILENAME, BLOB_STREAM); |
| 16 | zipWriter.close(); |
| 17 | const zipReader = new zip.ZipReader(zipStream); |
| 18 | const entries = await zipReader.getEntries(); |
| 19 | const data = await entries[0].arrayBuffer(); |
| 20 | const text = new TextDecoder().decode(data); |
| 21 | await zipReader.close(); |
| 22 | await zip.terminateWorkers(); |
| 23 | if (TEXT_CONTENT != text) { |
| 24 | throw new Error(); |
| 25 | } |
| 26 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…