@@ -92,7 +92,7 @@ describe("allocator", () => {
9292 expect . objectContaining ( {
9393 input : {
9494 QueueUrl : mockQueueUrl ,
95- MessageBody : JSON . stringify ( snsEvent . Records [ 0 ] ) ,
95+ MessageBody : JSON . stringify ( snsEvent . Records [ 0 ] . Sns ) ,
9696 MessageGroupId : expect . any ( String ) ,
9797 } ,
9898 } ) ,
@@ -120,7 +120,7 @@ describe("allocator", () => {
120120 expect . objectContaining ( {
121121 input : {
122122 QueueUrl : mockQueueUrl ,
123- MessageBody : JSON . stringify ( snsEvent . Records [ 0 ] ) ,
123+ MessageBody : JSON . stringify ( snsEvent . Records [ 0 ] . Sns ) ,
124124 MessageGroupId : expect . any ( String ) ,
125125 } ,
126126 } ) ,
@@ -130,7 +130,7 @@ describe("allocator", () => {
130130 expect . objectContaining ( {
131131 input : {
132132 QueueUrl : mockQueueUrl ,
133- MessageBody : JSON . stringify ( snsEvent . Records [ 1 ] ) ,
133+ MessageBody : JSON . stringify ( snsEvent . Records [ 1 ] . Sns ) ,
134134 MessageGroupId : expect . any ( String ) ,
135135 } ,
136136 } ) ,
@@ -140,7 +140,7 @@ describe("allocator", () => {
140140 expect . objectContaining ( {
141141 input : {
142142 QueueUrl : mockQueueUrl ,
143- MessageBody : JSON . stringify ( snsEvent . Records [ 2 ] ) ,
143+ MessageBody : JSON . stringify ( snsEvent . Records [ 2 ] . Sns ) ,
144144 MessageGroupId : expect . any ( String ) ,
145145 } ,
146146 } ) ,
0 commit comments