Skip to content

Commit

Permalink
test: add tests for da_dk country_code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshy committed Sep 6, 2023
1 parent eb1d2bc commit 520f812
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_da_dk_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,10 @@ def test_da_dk_phone_number_methods
assert_match(/(20)|(30)|(40)[\d\s]+$/, Faker::PhoneNumber.cell_phone)
assert_match(/(\d\d[\s-]?){4}$/, Faker::PhoneNumber.phone_number)
end

def test_da_dk_counrty_code
assert_equal '+45', Faker::PhoneNumber.country_code
assert_match(/(\+45)[\s](\d\d[\s-]?){4}$/, Faker::PhoneNumber.phone_number_with_country_code)
assert_match(/(\+45)[\s](\d\d[\s-]?){4}$/, Faker::PhoneNumber.cell_phone_with_country_code)
end
end

0 comments on commit 520f812

Please sign in to comment.