add unit tests for SmsSender

This commit is contained in:
Andrew Bissell authored and Jon Chambers committed 2021-04-08 09:17:47 -04:00
1 parent 2a8806ec2e
commit 1f24c913a6
2 files changed
+43 -1

No files matched your search

@@ -21,7 +21,7 @@ public class SmsSender {
public void deliverSmsVerification(String destination, Optional<String> clientType, String verificationCode) {
// Fix up mexico numbers to 'mobile' format just for SMS delivery.
if (destination.startsWith("+52") && !destination.startsWith("+521")) {
destination = "+521" + destination.substring(3);
destination = "+521" + destination.substring("+52".length());
}
twilioSender.deliverSmsVerification(destination, clientType, verificationCode);