Skip to content

Commit 096461a

Browse files
committed
CCM-12875: add a couple of extra unit test assertions
1 parent 2ea084a commit 096461a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lambdas/pdm-uploader-lambda/src/__tests__/apis/sqs-trigger-lambda.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ describe('sqs-trigger-lambda', () => {
211211
const result = await handler(sqsEvent);
212212

213213
expect(result.batchItemFailures).toEqual([{ itemIdentifier: 'msg-1' }]);
214+
expect(mockEventPublisher.sendEvents).not.toHaveBeenCalled();
214215
expect(mockLogger.error).toHaveBeenCalledWith(
215216
expect.objectContaining({
216217
description: 'Error parsing SQS record',
@@ -239,6 +240,7 @@ describe('sqs-trigger-lambda', () => {
239240
const result = await handler(sqsEvent);
240241

241242
expect(result.batchItemFailures).toEqual([{ itemIdentifier: 'msg-1' }]);
243+
expect(mockEventPublisher.sendEvents).not.toHaveBeenCalled();
242244
expect(mockLogger.error).toHaveBeenCalledWith(
243245
expect.objectContaining({
244246
description: 'Error parsing queue entry',

0 commit comments

Comments
 (0)