Skip to content

Commit

Permalink
Fix test failing on new node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Nov 27, 2023
1 parent f538085 commit 4cd8d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ 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(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 4cd8d80

Please sign in to comment.