We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fadd11 commit 7acaaceCopy full SHA for 7acaace
1 file changed
src/messaging/event.test.js
@@ -111,6 +111,19 @@ describe('event', () => {
111
ReceiptHandle: receiptHandle
112
})
113
114
+
115
+ it('should throw if message not found', async () => {
116
+ const receivedMessage = {
117
+ Messages: []
118
+ }
119
120
+ snsMock.on(ReceiveMessageCommand).resolves(receivedMessage)
121
+ await expect(() =>
122
+ deleteDlqMessage(messageStub.MessageId)
123
+ ).rejects.toThrow(
124
+ 'Message with id 31cb6fff-8317-412e-8488-308d099034c4 not found in notify-listener DLQ'
125
+ )
126
+ })
127
128
129
0 commit comments