@@ -83,6 +83,7 @@ describe('verifyEmailMockTest', () => {
8383 emailAddress : 'foo@bar.com' ,
8484 verifyMx : true ,
8585 verifySmtp : true ,
86+ debug : true ,
8687 } ) ;
8788 sinon . assert . called ( self . resolveMxStub ) ;
8889 sinon . assert . called ( self . connectStub ) ;
@@ -102,15 +103,25 @@ describe('verifyEmailMockTest', () => {
102103
103104 describe ( 'mailbox verification' , ( ) => {
104105 it ( 'returns true when mailbox exists' , async ( ) => {
105- const result = await verifyEmail ( { emailAddress : 'bar@foo.com' , verifySmtp : true , verifyMx : true } ) ;
106+ const result = await verifyEmail ( {
107+ emailAddress : 'bar@foo.com' ,
108+ verifySmtp : true ,
109+ verifyMx : true ,
110+ debug : true ,
111+ } ) ;
106112 expect ( result . validSmtp ) . toBe ( true ) ;
107113 } ) ;
108114
109115 it ( 'returns null if mailbox is yahoo' , async ( ) => {
110116 self . resolveMxStub . restore ( ) ;
111117 stubResolveMx ( self , 'yahoo.com' ) ;
112118
113- const result = await verifyEmail ( { emailAddress : 'bar@yahoo.com' , verifySmtp : true , verifyMx : true } ) ;
119+ const result = await verifyEmail ( {
120+ emailAddress : 'bar@yahoo.com' ,
121+ verifySmtp : true ,
122+ verifyMx : true ,
123+ debug : true ,
124+ } ) ;
114125
115126 expect ( result . validSmtp ) . toBe ( true ) ;
116127 } ) ;
@@ -152,6 +163,7 @@ describe('verifyEmailMockTest', () => {
152163 emailAddress : 'bar@foo.com' ,
153164 verifySmtp : true ,
154165 verifyMx : true ,
166+ debug : true ,
155167 } ) ;
156168
157169 expect ( result . validSmtp ) . toBe ( false ) ;
@@ -178,6 +190,7 @@ describe('verifyEmailMockTest', () => {
178190 emailAddress : 'bar@foo.com' ,
179191 verifySmtp : true ,
180192 verifyMx : true ,
193+ debug : true ,
181194 } ) ;
182195 expect ( result . validSmtp ) . toBe ( null ) ;
183196 expect ( result . validMx ) . toBe ( true ) ;
@@ -248,7 +261,7 @@ describe('verifyEmailMockTest', () => {
248261
249262 self . connectStub = self . connectStub . returns ( socket as unknown as Socket ) ;
250263
251- await verifyEmail ( { emailAddress : 'bar@foo.com' , verifySmtp : true , verifyMx : true } ) ;
264+ await verifyEmail ( { emailAddress : 'bar@foo.com' , verifySmtp : true , verifyMx : true , debug : true } ) ;
252265 sinon . assert . notCalled ( writeSpy ) ;
253266 sinon . assert . notCalled ( endSpy ) ;
254267 } ) ;
0 commit comments