()
| 20 | // ============================================================================= |
| 21 | |
| 22 | async function testCorruptGzipData() { |
| 23 | const corrupt = new Uint8Array([0x1F, 0x8B, 0xFF, 0xFF, 0xFF]); |
| 24 | |
| 25 | await assert.rejects( |
| 26 | async () => await bytes(pull(from(corrupt), decompressGzip())), { |
| 27 | name: 'Error', |
| 28 | code: 'Z_DATA_ERROR', |
| 29 | }); |
| 30 | } |
| 31 | |
| 32 | async function testCorruptDeflateData() { |
| 33 | const corrupt = new Uint8Array([0x78, 0xFF, 0xFF, 0xFF]); |
no test coverage detected
searching dependent graphs…