Skip to content

Commit 4458a36

Browse files
committed
Added check for base64 encoding when the response is compressed
1 parent 70dae88 commit 4458a36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/event-handler/tests/unit/rest/converters.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ describe('Converters', () => {
407407

408408
const result = await webResponseToProxyResult(response);
409409
expect(result.isBase64Encoded).toBe(true);
410+
expect(result.body).toEqual(
411+
Buffer.from('Hello World').toString('base64')
412+
);
410413
});
411414
});
412415

0 commit comments

Comments
 (0)