()
| 40 | } |
| 41 | |
| 42 | async function testCorruptBrotliData() { |
| 43 | const corrupt = new Uint8Array([0xFF, 0xFF, 0xFF, 0xFF]); |
| 44 | |
| 45 | await assert.rejects( |
| 46 | async () => await bytes(pull(from(corrupt), decompressBrotli())), { |
| 47 | name: 'Error', |
| 48 | code: 'ERR__ERROR_FORMAT_PADDING_2', |
| 49 | }); |
| 50 | } |
| 51 | |
| 52 | async function testCorruptZstdData() { |
| 53 | // Completely invalid data (not even valid magic bytes) |
no test coverage detected
searching dependent graphs…