()
| 30 | } |
| 31 | |
| 32 | async function testCorruptDeflateData() { |
| 33 | const corrupt = new Uint8Array([0x78, 0xFF, 0xFF, 0xFF]); |
| 34 | |
| 35 | await assert.rejects( |
| 36 | async () => await bytes(pull(from(corrupt), decompressDeflate())), { |
| 37 | name: 'Error', |
| 38 | code: 'Z_DATA_ERROR', |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | async function testCorruptBrotliData() { |
| 43 | const corrupt = new Uint8Array([0xFF, 0xFF, 0xFF, 0xFF]); |
no test coverage detected
searching dependent graphs…