Skip to content

Commit bb85279

Browse files
committed
Tests: Make sure long TLDs work fine for email and url methods
1 parent 2ad0ca8 commit bb85279

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/methods.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ test("url", function() {
3838
ok( method( "http://www.føtex.dk/" ), "Valid url, danish unicode characters" );
3939
ok( method( "http://bösendorfer.de/" ), "Valid url, german unicode characters" );
4040
ok( method( "http://192.168.8.5" ), "Valid IP Address" );
41+
ok( method( "http://pro.photography" ), "Valid long TLD" );
4142
ok(!method( "http://192.168.8." ), "Invalid IP Address" );
4243
ok(!method( "http://bassistance" ), "Invalid url" ); // valid
4344
ok(!method( "http://bassistance." ), "Invalid url" ); // valid
@@ -75,6 +76,7 @@ test("email", function() {
7576
ok( method( "name@domain" ), "Valid email" );
7677
ok( method( "name.@domain.tld" ), "Valid email" );
7778
ok( method( "name@website.a" ), "Valid email" );
79+
ok( method( "name@pro.photography" ), "Valid email" );
7880
ok(!method( "ole@føtex.dk"), "Invalid email" );
7981
ok(!method( "jörn@bassistance.de"), "Invalid email" );
8082
ok(!method( "name" ), "Invalid email" );

0 commit comments

Comments
 (0)