Skip to content

Commit

Permalink
Merge pull request #1702 from 18F/mb-add-664
Browse files Browse the repository at this point in the history
Add area code 664 to unsupported list
  • Loading branch information
monfresh authored Oct 13, 2017
2 parents 8d3fdff + e28a071 commit 2900007
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/services/phone_number_capabilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class PhoneNumberCapabilities
'473' => 'Grenada',
'671' => 'Guam',
'876' => 'Jamaica',
'664' => 'Montserrat',
'670' => 'Northern Mariana Islands',
'869' => 'Saint Kitts and Nevis',
'758' => 'Saint Lucia',
Expand Down
28 changes: 28 additions & 0 deletions spec/services/phone_number_capabilities_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,32 @@
expect(locality).to eq('Morocco')
end
end

describe 'list of unsupported area codes' do
it 'is up to date' do
unsupported_area_codes = {
'648' => 'American Samoa',
'264' => 'Anguilla',
'268' => 'Antigua and Barbuda',
'246' => 'Barbados',
'441' => 'Bermuda',
'345' => 'Cayman Islands',
'767' => 'Dominica',
'809' => 'Dominican Republic',
'473' => 'Grenada',
'671' => 'Guam',
'876' => 'Jamaica',
'664' => 'Montserrat',
'670' => 'Northern Mariana Islands',
'869' => 'Saint Kitts and Nevis',
'758' => 'Saint Lucia',
'784' => 'Saint Vincent Grenadines',
'868' => 'Trinidad and Tobago',
'649' => 'Turks and Caicos Islands',
'284' => 'British Virgin Islands',
'340' => 'United States Virgin Islands',
}
expect(PhoneNumberCapabilities::VOICE_UNSUPPORTED_US_AREA_CODES).to eq unsupported_area_codes
end
end
end

0 comments on commit 2900007

Please sign in to comment.