Skip to content

Commit 74a47d8

Browse files
committed
Oh yeah, SNS + SQS JSON serialize their payloads
1 parent 88e3041 commit 74a47d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/event-mocks.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ module.exports = {
88
tablesStreams,
99
}
1010

11-
function events (Message) {
11+
function events (payload) {
12+
let Message = JSON.stringify(payload)
1213
return { Records: [ { Sns: { Message } } ] } // this is fine
1314
}
1415

15-
function queues (body) {
16+
function queues (payload) {
17+
let body = JSON.stringify(payload)
1618
return { Records: [ { body } ] } // also fine
1719
}
1820

0 commit comments

Comments
 (0)