Solved #34 by setting a default object on lowerCaseKeys because it is possible to send in an event without headers. In production, we saw this occurring with serverless-warmup plugin sending no headers.
Continued the work in #18 by fixing the tests and updating a missed done() usage
(High-fives to @maumercado for finding and suggesting the fix in lowerCaseKeys)
Two main things in here:
lowerCaseKeys
because it is possible to send in an event without headers. In production, we saw this occurring withserverless-warmup
plugin sending no headers.done()
usage(High-fives to @maumercado for finding and suggesting the fix in
lowerCaseKeys
)