File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -73,23 +73,11 @@ describe('validation tests', () => {
7373 expect ( res ) . toMatchSnapshot ( )
7474 } )
7575
76- it (
77- 'fails with bad mailbox' ,
78- async ( ) => {
79- const res = await validate ( 'admin@github.com' )
80- expect ( res . valid ) . toBe ( false )
81- expect ( res . reason ) . toBe ( 'smtp' )
82- expect ( res . validators . smtp ?. valid ) . toBe ( false )
83- expect ( res ) . toMatchSnapshot ( )
84- } ,
85- elevenSeconds
86- )
87-
8876 it (
8977 'passes when we skip smtp validation' ,
9078 async ( ) => {
9179 const res = await validate ( {
92- email : 'admin@github.com ' ,
80+ email : 'david@andco.life ' ,
9381 validateSMTP : false ,
9482 } )
9583 expect ( res . valid ) . toBe ( true )
@@ -127,7 +115,7 @@ describe('validation tests', () => {
127115 const res = await validate ( {
128116 email : 'info@utob.ir' ,
129117 validateSMTP : false ,
130- additionalTopLevelDomains : [ 'ir' ]
118+ additionalTopLevelDomains : [ 'ir' ] ,
131119 } )
132120 expect ( res . valid ) . toBe ( true )
133121 expect ( every ( values ( res . validators ) , x => x && x . valid ) ) . toBe ( true )
You can’t perform that action at this time.
0 commit comments