Skip to content

Commit

Permalink
test: fix test for Node.js 4
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Aug 17, 2018
1 parent 790e976 commit 6eb8ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const app = require('../examples/basic-starter/app')

const server = awsServerlessExpress.createServer(app)
const lambdaFunction = {
handler: (event, context, resolutionMode, callback, _server = server) => awsServerlessExpress.proxy(_server, event, context, resolutionMode, callback)
handler: (event, context, resolutionMode, callback, _server) => awsServerlessExpress.proxy(_server || server, event, context, resolutionMode, callback)
}

function clone (json) {
Expand Down

0 comments on commit 6eb8ad9

Please sign in to comment.