We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a71848 commit 055b1ecCopy full SHA for 055b1ec
test/index.test.ts
@@ -148,7 +148,9 @@ describe('index.test.ts', () => {
148
assert.equal(err.res.status, 200);
149
assert.equal(err.name, 'HTTPParserError');
150
assert.equal(err.message, 'Response does not match the HTTP/1.1 protocol (Invalid character in chunk size)');
151
- assert.equal(err.code, 'HPE_INVALID_CHUNK_SIZE');
+ if (err.code) {
152
+ assert.equal(err.code, 'HPE_INVALID_CHUNK_SIZE');
153
+ }
154
assert.equal(err.data, 'labala');
155
return true;
156
});
0 commit comments