()
| 49 | } |
| 50 | |
| 51 | async function testBrotliCompatWithZlib() { |
| 52 | const brotliDecompress = promisify(zlib.brotliDecompress); |
| 53 | |
| 54 | const input = 'Cross-compat brotli test. '.repeat(100); |
| 55 | const compressed = await bytes(pull(from(input), compressBrotli())); |
| 56 | |
| 57 | const decompressed = await brotliDecompress(compressed); |
| 58 | assert.strictEqual(decompressed.toString(), input); |
| 59 | } |
| 60 | |
| 61 | async function testZstdCompatWithZlib() { |
| 62 | const zstdDecompress = promisify(zlib.zstdDecompress); |
no test coverage detected
searching dependent graphs…