From 1fda1c3009523509c03165bb3fa30bb5ba19f4c3 Mon Sep 17 00:00:00 2001 From: Nicolas Morel Date: Mon, 15 Jan 2024 15:51:53 +0100 Subject: [PATCH] Apply suggestions from code review --- test/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/index.js b/test/index.js index 382e768..33fbb37 100755 --- a/test/index.js +++ b/test/index.js @@ -2112,6 +2112,7 @@ describe('gunzip', () => { const err = await expect(Wreck.get(`http://localhost:${server.address().port}`, options)).to.reject(); expect(err).to.be.an.error(/Unexpected token/); + expect(Boom.isBoom(err)).to.be.true(); expect(err.data.res.statusCode).to.equal(200); expect(err.data.payload).to.equal(Zlib.gzipSync(JSON.stringify({ foo: 'bar' }))); flags.onCleanup = () => server.close();