Skip to content

Commit

Permalink
Fix test failing on new node versions (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Jan 15, 2024
1 parent f538085 commit 1bffa31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,8 @@ describe('gunzip', () => {
const options = { json: true };

const err = await expect(Wreck.get(`http://localhost:${server.address().port}`, options)).to.reject();
expect(err).to.be.an.error('Unexpected token \u001f in JSON at position 0');
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();
Expand Down

0 comments on commit 1bffa31

Please sign in to comment.