()
| 38 | } |
| 39 | |
| 40 | async function testDeflateCompatWithZlib() { |
| 41 | const inflate = promisify(zlib.inflate); |
| 42 | |
| 43 | const input = 'Cross-compat deflate test. '.repeat(100); |
| 44 | const compressed = await bytes(pull(from(input), compressDeflate())); |
| 45 | |
| 46 | // Decompress with standard zlib |
| 47 | const decompressed = await inflate(compressed); |
| 48 | assert.strictEqual(decompressed.toString(), input); |
| 49 | } |
| 50 | |
| 51 | async function testBrotliCompatWithZlib() { |
| 52 | const brotliDecompress = promisify(zlib.brotliDecompress); |
no test coverage detected
searching dependent graphs…