Skip to content
Myr

test(aws-lambda): update integration tests (#5012)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent 7ae7cba · Browse files · 1 file+5 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−7 removed

  • tests:+5 added−7 removed

1 file+5 added−7 removed

modified:runtime-tests/lambda/index.test.ts+5 added-7 removed
537 unmodified lines
538539 const latticeResponse = await handler(latticeProxyEvent)540541 expect(latticeResponse.statusCode).toBe(200)542 expect(latticeResponse.headers).toHaveProperty(543 'set-cookie',544 [testCookie1.serialized, testCookie2.serialized].join(', ')545 )542 expect(latticeResponse.headers).toHaveProperty('set-cookie', [543 testCookie1.serialized,544 testCookie2.serialized,545 ])546 })547548 describe('headers', () => {549 describe('single-value headers', () => {
234 unmodified lines
784 expect(albResponse.statusCode).toBe(200)785 expect(albResponse.body).toBe('Cookies Set')786 expect(albResponse.headers['content-type']).toMatch(/^text\/plain/)787 expect(albResponse.multiValueHeaders).toBeUndefined()788 expect(albResponse.headers['set-cookie']).toEqual(789 [testCookie1.serialized, testCookie2.serialized].join(', ')790 )788 expect(albResponse.headers['set-cookie']).toEqual(testCookie1.serialized)789 expect(albResponse.isBase64Encoded).toBe(false)790 })791792 it('Should handle a POST request and return a 200 response with cookies (ALBProxyEvent) with multi value headers', async () => {
295 unmodified lines