@@ -4,9 +4,9 @@ describe('email', () => {
44 it ( 'should validate a valid email address' , async ( ) => {
55 const { data } = await emailApi . v1GetEmailDetails ( {
66 email : 'test@gmail.com' ,
7- verifyMx : ' true' ,
8- verifySmtp : ' false' ,
9- detectName : ' true' ,
7+ verifyMx : true ,
8+ verifySmtp : false ,
9+ detectName : true ,
1010 } ) ;
1111
1212 expect ( data . email ) . toBe ( 'test@gmail.com' ) ;
@@ -19,8 +19,8 @@ describe('email', () => {
1919 it ( 'should detect disposable email' , async ( ) => {
2020 const { data } = await emailApi . v1GetEmailDetails ( {
2121 email : 'test@mailinator.com' ,
22- verifyMx : ' false' ,
23- verifySmtp : ' false' ,
22+ verifyMx : false ,
23+ verifySmtp : false ,
2424 } ) ;
2525
2626 expect ( data . email ) . toBe ( 'test@mailinator.com' ) ;
@@ -30,8 +30,8 @@ describe('email', () => {
3030 it ( 'should validate email with domain check' , async ( ) => {
3131 const { data } = await emailApi . v1GetEmailDetails ( {
3232 email : 'test@example.com' ,
33- verifyMx : ' true' ,
34- verifySmtp : ' false' ,
33+ verifyMx : true ,
34+ verifySmtp : false ,
3535 } ) ;
3636
3737 expect ( data . email ) . toBe ( 'test@example.com' ) ;
@@ -43,8 +43,8 @@ describe('email', () => {
4343 it ( 'should check free email provider' , async ( ) => {
4444 const { data } = await emailApi . v1GetEmailDetails ( {
4545 email : 'user@gmail.com' ,
46- verifyMx : ' false' ,
47- verifySmtp : ' false' ,
46+ verifyMx : false ,
47+ verifySmtp : false ,
4848 } ) ;
4949
5050 expect ( data . email ) . toBe ( 'user@gmail.com' ) ;
@@ -55,9 +55,9 @@ describe('email', () => {
5555 it ( 'should provide comprehensive email validation' , async ( ) => {
5656 const { data } = await emailApi . v1GetEmailDetails ( {
5757 email : 'john.doe@gmail.com' ,
58- verifyMx : ' true' ,
59- verifySmtp : ' false' ,
60- detectName : ' true' ,
58+ verifyMx : true ,
59+ verifySmtp : false ,
60+ detectName : true ,
6161 } ) ;
6262
6363 expect ( data . email ) . toBe ( 'john.doe@gmail.com' ) ;
@@ -80,8 +80,8 @@ describe('email', () => {
8080 it ( 'should validate business email' , async ( ) => {
8181 const { data } = await emailApi . v1GetEmailDetails ( {
8282 email : 'contact@microsoft.com' ,
83- verifyMx : ' true' ,
84- verifySmtp : ' false' ,
83+ verifyMx : true ,
84+ verifySmtp : false ,
8585 } ) ;
8686
8787 expect ( data . email ) . toBe ( 'contact@microsoft.com' ) ;
0 commit comments