Skip to content

Commit

Permalink
Merge pull request #57 from getndazn/feature/refactor-correlation-ids
Browse files Browse the repository at this point in the history
Feature/refactor correlation ids
  • Loading branch information
Gurarpit Singh committed Jul 5, 2019
2 parents cbcf61b + dc10624 commit e3d2518
Show file tree
Hide file tree
Showing 21 changed files with 963 additions and 863 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const _ = require('lodash')
const { standardTests } = require('./lib')

global.console.log = jest.fn()

const apig = require('./event-templates/apig.json')
const genApiGatewayEvent = (correlationIds = {}) => {
const event = _.cloneDeep(apig)
event.headers = correlationIds
return event
}

describe('Correlation IDs middleware (API Gateway)', () => {
standardTests(genApiGatewayEvent)
})
Loading

0 comments on commit e3d2518

Please sign in to comment.