Skip to content

Commit 520f812

Browse files
committed
test: add tests for da_dk country_code
1 parent eb1d2bc commit 520f812

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_da_dk_locale.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,10 @@ def test_da_dk_phone_number_methods
5454
assert_match(/(20)|(30)|(40)[\d\s]+$/, Faker::PhoneNumber.cell_phone)
5555
assert_match(/(\d\d[\s-]?){4}$/, Faker::PhoneNumber.phone_number)
5656
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
5763
end

0 commit comments

Comments
 (0)