Skip to content

Commit 055b1ec

Browse files
committed
f
1 parent 1a71848 commit 055b1ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/index.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ describe('index.test.ts', () => {
148148
assert.equal(err.res.status, 200);
149149
assert.equal(err.name, 'HTTPParserError');
150150
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');
151+
if (err.code) {
152+
assert.equal(err.code, 'HPE_INVALID_CHUNK_SIZE');
153+
}
152154
assert.equal(err.data, 'labala');
153155
return true;
154156
});

0 commit comments

Comments
 (0)