We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a994700 commit 6e32eccCopy full SHA for 6e32ecc
test/integration.test.ts
@@ -274,4 +274,29 @@ describe('integration', () => {
274
});
275
276
277
+ it('handles url GET params as expected', () => {
278
+ const myEvent = {
279
+ path: "/inspect",
280
+ httpMethod: "GET",
281
+ headers: {},
282
+ multiValueHeaders: {},
283
+ queryStringParameters: {
284
+ paRaM1: 'valuE1',
285
+ param2: 'value2'
286
+ },
287
+ isBase64Encoded: false,
288
+ body: null
289
+ }
290
+
291
+ return handler(myEvent).then(response => {
292
+ expect(response.statusCode).toEqual(200);
293
+ const json = JSON.parse(response.body);
294
+ expect(json.originalUrl).toEqual("/inspect?paRaM1=valuE1¶m2=value2");
295
+ expect(json.query).toEqual({
296
297
298
+ })
299
300
+ });
301
302
})
0 commit comments