(stream: NodeJS.ReadableStream)
| 38 | } |
| 39 | |
| 40 | const expectStreamToFail = async (stream: NodeJS.ReadableStream): Promise<void> => { |
| 41 | try { |
| 42 | await toBuffer(stream) |
| 43 | expect.fail('Expected stream to fail') |
| 44 | } catch (error) { |
| 45 | expect(error).to.be.instanceOf(Error) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | describe('compression utils', () => { |
| 50 | const xzAvailable = hasLzmaNative() |
no test coverage detected