From c21101df96d0b06cdbf89c0c10b285a055b6ab68 Mon Sep 17 00:00:00 2001 From: Mudiwa Matanda Date: Thu, 24 Oct 2024 09:00:47 +0200 Subject: [PATCH 1/2] changed dat -> day on USSD reg --- src/ussd_clinic_rapidpro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ussd_clinic_rapidpro.js b/src/ussd_clinic_rapidpro.js index 06c86cce..63180c4a 100644 --- a/src/ussd_clinic_rapidpro.js +++ b/src/ussd_clinic_rapidpro.js @@ -653,7 +653,7 @@ go.app = function() { if (!date.isBetween(current_date.clone().add(-2, "years"), current_date)) { return $( "Unfortunately MomConnect doesn't send messages to children older " + - "than 2 years. Please try again by entering the dat the baby was " + + "than 2 years. Please try again by entering the day the baby was " + "born as a number, e.g. 12." ); } From b035d41907e9b9673a08cdfcd718818d31c5165b Mon Sep 17 00:00:00 2001 From: Mudiwa Matanda Date: Thu, 24 Oct 2024 09:09:06 +0200 Subject: [PATCH 2/2] updated tests --- test/ussd_clinic_rapidpro.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ussd_clinic_rapidpro.test.js b/test/ussd_clinic_rapidpro.test.js index 59f77b0e..52d412f6 100644 --- a/test/ussd_clinic_rapidpro.test.js +++ b/test/ussd_clinic_rapidpro.test.js @@ -1103,7 +1103,7 @@ describe("ussd_clinic app", function() { .check.interaction({ reply: "Unfortunately MomConnect doesn't send messages to children older than 2 " + - "years. Please try again by entering the dat the baby was born as a " + + "years. Please try again by entering the day the baby was born as a " + "number, e.g. 12." }) .run(); @@ -1116,7 +1116,7 @@ describe("ussd_clinic app", function() { .check.interaction({ reply: "Unfortunately MomConnect doesn't send messages to children older than 2 " + - "years. Please try again by entering the dat the baby was born as a " + + "years. Please try again by entering the day the baby was born as a " + "number, e.g. 12." }) .run();