()
| 27 | // ============================================================================= |
| 28 | |
| 29 | async function testGzipCompatWithZlib() { |
| 30 | const gunzip = promisify(zlib.gunzip); |
| 31 | |
| 32 | const input = 'Cross-compat test with node:zlib. '.repeat(100); |
| 33 | const compressed = await bytes(pull(from(input), compressGzip())); |
| 34 | |
| 35 | // Decompress with standard zlib |
| 36 | const decompressed = await gunzip(compressed); |
| 37 | assert.strictEqual(decompressed.toString(), input); |
| 38 | } |
| 39 | |
| 40 | async function testDeflateCompatWithZlib() { |
| 41 | const inflate = promisify(zlib.inflate); |
no test coverage detected
searching dependent graphs…