We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1d2bc commit 520f812Copy full SHA for 520f812
test/test_da_dk_locale.rb
@@ -54,4 +54,10 @@ def test_da_dk_phone_number_methods
54
assert_match(/(20)|(30)|(40)[\d\s]+$/, Faker::PhoneNumber.cell_phone)
55
assert_match(/(\d\d[\s-]?){4}$/, Faker::PhoneNumber.phone_number)
56
end
57
+
58
+ def test_da_dk_counrty_code
59
+ assert_equal '+45', Faker::PhoneNumber.country_code
60
+ assert_match(/(\+45)[\s](\d\d[\s-]?){4}$/, Faker::PhoneNumber.phone_number_with_country_code)
61
+ assert_match(/(\+45)[\s](\d\d[\s-]?){4}$/, Faker::PhoneNumber.cell_phone_with_country_code)
62
+ end
63
0 commit comments