Anyone here could help in providing an example for...
# help
u
Anyone here could help in providing an example for writing test cases for SQS SendMessage?
f
Hey @Uday Bhaskar Gajavalli, can you elaborate on what you are trying to test?
Can u test and see if the consumer function is called with the expected payload?
u
I have tested with consumer function it's working fine with the payload.. I have written a logic where we supposed to redirect the body according to type into their respective queues. So I'm stuck with unit testing this logic from lambda function which has redirection logic
Also somehow, consumer function of every lambda function is invoking exactly twice. Is there any solution for this?