Skip to content

Commit

Permalink
reorg lambda console test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Aug 1, 2019
1 parent cd0ed1b commit 2353583
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,11 @@ describe('Request Tests:', function() {
expect(body.request.multiValueHeaders['test-header']).to.deep.equal(['val1','val2'])
})

})

describe('API Gateway Console Test', function() {
// See: https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html
it('API Gateway Console Test event', async function() {
it('Standard event w/o multiValueHeaders', async function() {
let _event = require('./sample-event-consoletest1.json')
let _context = require('./sample-context-apigateway1.json')
let result = await new Promise(r => api.run(_event,_context,(e,res) => { r(res) }))
Expand Down

0 comments on commit 2353583

Please sign in to comment.