add unit tests for SmsSender

This commit is contained in:
Andrew Bissell
2019-06-25 22:54:55 -07:00
committed by Jon Chambers
parent 2a8806ec2e
commit 1f24c913a6
2 changed files with 43 additions and 1 deletions

View File

@@ -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);