Skip to content

Commit 8510217

Browse files
committed
Update tests
1 parent c48a98f commit 8510217

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/updatePrescriptionStatus/tests/testSqsClient.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ describe("Unit tests for pushPrescriptionToNotificationSQS", () => {
6363

6464
// It logs the initial push attempt, but never actually sends
6565
expect(infoSpy).toHaveBeenCalledWith(
66-
"Pushing data items up to the notifications SQS",
67-
{count: data.length, sqsUrl: process.env.NHS_NOTIFY_PRESCRIPTIONS_SQS_QUEUE_URL}
66+
"Checking if any items require notifications",
67+
{numItemsToBeChecked: data.length, sqsUrl: process.env.NHS_NOTIFY_PRESCRIPTIONS_SQS_QUEUE_URL}
6868
)
6969
expect(mockSend).not.toHaveBeenCalled()
7070
})
@@ -87,7 +87,7 @@ describe("Unit tests for pushPrescriptionToNotificationSQS", () => {
8787

8888
// Confirm it logged the "notification required" and the success
8989
expect(infoSpy).toHaveBeenCalledWith(
90-
"Notification required. Pushing prescriptions with the following SQS message IDs",
90+
"Notification required. Pushing prescriptions to the notifications SQS with the following SQS message IDs",
9191
expect.objectContaining({requestId: "req-789", messageIds: expect.any(Array)})
9292
)
9393
expect(infoSpy).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)