@@ -451,6 +451,22 @@ describe('Raw Validator', function() {
451
451
expect ( isUrl ) . to . equal ( true )
452
452
} )
453
453
454
+ //////////////////////////
455
+ // test suite add later //
456
+ //////////////////////////
457
+ it ( 'should return true when input contains 63 characters TLD' , function ( ) {
458
+ const isUrl = Is . url ( 'https://example.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk' )
459
+ expect ( isUrl ) . to . equal ( true )
460
+ } )
461
+
462
+ //////////////////////////
463
+ // test suite add later //
464
+ //////////////////////////
465
+ it ( 'should return false when input contains more than 63 characters TLD' , function ( ) {
466
+ const isUrl = Is . url ( 'https://example.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl' )
467
+ expect ( isUrl ) . to . equal ( false )
468
+ } )
469
+
454
470
///////////////////
455
471
// test suite 55 //
456
472
///////////////////
@@ -486,11 +502,19 @@ describe('Raw Validator', function() {
486
502
///////////////////
487
503
// test suite 59 //
488
504
///////////////////
489
- it ( 'should return true when input is a valid email address with different TLD' , function ( ) {
490
- const isEmail = Is . email ( 'someone@example.org ' )
505
+ it ( 'should return true when input is a valid email address with 63 characters TLD' , function ( ) {
506
+ const isEmail = Is . email ( 'someone@example.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk ' )
491
507
expect ( isEmail ) . to . equal ( true )
492
508
} )
493
509
510
+ //////////////////////////
511
+ // test suite add later //
512
+ //////////////////////////
513
+ it ( 'should return false when input is not a valid email address with more than 63 characters TLD' , function ( ) {
514
+ const isEmail = Is . email ( 'someone@example.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl' )
515
+ expect ( isEmail ) . to . equal ( false )
516
+ } )
517
+
494
518
//////////////////////////
495
519
// test suite add later //
496
520
//////////////////////////
0 commit comments