Skip to content

Commit

Permalink
chore: rename na code
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Nov 8, 2023
1 parent cb5ffea commit 13eaea3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Utopia/Messaging/Adapters/SMS/GEOSMS/CallingCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ enum CallingCode: string
case UNITED_ARAB_EMIRATES = '971';
case UNITED_KINGDOM = '44';
case URUGUAY = '598';
case USA_AND_CANADA = '1';
case NORTH_AMERICA = '1';
case VANUATU = '678';
case VENEZUELA = '58';
case VIETNAM = '84';
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/SMS/GEOSMS/CallingCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CallingCodeTest extends Base
{
public function testFromPhoneNumber()
{
$this->assertEquals(CallingCode::USA_AND_CANADA, CallingCode::fromPhoneNumber('+11234567890'));
$this->assertEquals(CallingCode::NORTH_AMERICA, CallingCode::fromPhoneNumber('+11234567890'));
$this->assertEquals(CallingCode::INDIA, CallingCode::fromPhoneNumber('+911234567890'),);
$this->assertEquals(CallingCode::UNITED_ARAB_EMIRATES, CallingCode::fromPhoneNumber('009711234567890'));
$this->assertEquals(CallingCode::UNITED_KINGDOM, CallingCode::fromPhoneNumber('011441234567890'));
Expand Down

0 comments on commit 13eaea3

Please sign in to comment.