File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ test('getPathWithQueryStringParams: no params', () => {
15
15
test ( 'getPathWithQueryStringParams: 1 param' , ( ) => {
16
16
const event = {
17
17
path : '/foo/bar' ,
18
- queryStringParameters : {
18
+ queryString : {
19
19
'bizz' : 'bazz'
20
20
}
21
21
}
@@ -26,7 +26,7 @@ test('getPathWithQueryStringParams: 1 param', () => {
26
26
test ( 'getPathWithQueryStringParams: to be url-encoded param' , ( ) => {
27
27
const event = {
28
28
path : '/foo/bar' ,
29
- queryStringParameters : {
29
+ queryString : {
30
30
'redirect_uri' : 'http://lvh.me:3000/cb'
31
31
}
32
32
}
@@ -37,7 +37,7 @@ test('getPathWithQueryStringParams: to be url-encoded param', () => {
37
37
test ( 'getPathWithQueryStringParams: 2 params' , ( ) => {
38
38
const event = {
39
39
path : '/foo/bar' ,
40
- queryStringParameters : {
40
+ queryString : {
41
41
'bizz' : 'bazz' ,
42
42
'buzz' : 'bozz'
43
43
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const url = require('url')
18
18
const isType = require ( 'type-is' )
19
19
20
20
function getPathWithQueryStringParams ( event ) {
21
- return url . format ( { pathname : event . path , query : event . queryStringParameters } )
21
+ return url . format ( { pathname : event . path , query : event . queryString } )
22
22
}
23
23
function getEventBody ( event ) {
24
24
return Buffer . from ( event . body , event . isBase64Encoded ? 'base64' : 'utf8' )
You can’t perform that action at this time.
0 commit comments