Skip to content

Commit

Permalink
test both messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDanielson committed Jun 3, 2022
1 parent 80e50df commit b747f84
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,12 @@ describe('SQS', () => {
});

it('should have the custom added message attributes', async () => {
expect(receivedMessages[0].MessageAttributes?.TestMessageAttribute?.StringValue).toEqual('test value');
receivedMessages.
forEach(msg => {
expect(msg.MessageAttributes?.TestMessageAttribute?.StringValue).toEqual(
'test value'
);
})
});
});

Expand Down

0 comments on commit b747f84

Please sign in to comment.