diff --git a/test-resources/src/dequeue/tests/dequeueHandler.test.ts b/test-resources/src/dequeue/tests/dequeueHandler.test.ts index 9c38e7624..937d793e2 100644 --- a/test-resources/src/dequeue/tests/dequeueHandler.test.ts +++ b/test-resources/src/dequeue/tests/dequeueHandler.test.ts @@ -78,8 +78,7 @@ describe("Dequeue TxMA events", () => { }); describe("Given there are no messages to be processed", () => { - it("Logs an error message", async () => { - mockDbClient.on(PutItemCommand).rejects("Error writing to database"); + it("Logs an empty array", async () => { const event: SQSEvent = { Records: [], };