@@ -465,7 +465,7 @@ describe('Uniswap Swap Ability E2E Tests', () => {
465465 }
466466
467467 expect ( executeResult . result ) . toBeDefined ( ) ;
468- expect ( executeResult . result . approvalTxHash ) . not . toBeDefined ( ) ;
468+ expect ( executeResult . result . approvalTxHash ) . toBeUndefined ( ) ;
469469 expect ( executeResult . result . currentAllowance ) . toBeDefined ( ) ;
470470 expect ( BigInt ( executeResult . result . currentAllowance ! ) ) . toBeGreaterThanOrEqual (
471471 BigInt ( ethers . utils . parseUnits ( SWAP_AMOUNT . toString ( ) , SWAP_TOKEN_IN_DECIMALS ) . toString ( ) ) ,
@@ -654,7 +654,7 @@ describe('Uniswap Swap Ability E2E Tests', () => {
654654 }
655655
656656 expect ( executeResult . result ) . toBeDefined ( ) ;
657- expect ( executeResult . result . approvalTxHash ) . not . toBeDefined ( ) ;
657+ expect ( executeResult . result . approvalTxHash ) . toBeUndefined ( ) ;
658658 expect ( executeResult . result . approvalTxUserOperationHash ) . toBeDefined ( ) ;
659659
660660 const approvalTxUserOperationHash = executeResult . result . approvalTxUserOperationHash ;
@@ -703,7 +703,7 @@ describe('Uniswap Swap Ability E2E Tests', () => {
703703 }
704704
705705 expect ( executeResult . result ) . toBeDefined ( ) ;
706- expect ( executeResult . result . approvalTxHash ) . not . toBeDefined ( ) ;
706+ expect ( executeResult . result . approvalTxHash ) . toBeUndefined ( ) ;
707707 expect ( executeResult . result . currentAllowance ) . toBeDefined ( ) ;
708708 expect ( BigInt ( executeResult . result . currentAllowance ! ) ) . toBeGreaterThanOrEqual (
709709 BigInt ( ethers . utils . parseUnits ( SWAP_AMOUNT . toString ( ) , SWAP_TOKEN_IN_DECIMALS ) . toString ( ) ) ,
@@ -755,7 +755,7 @@ describe('Uniswap Swap Ability E2E Tests', () => {
755755
756756 // Verify the result is properly populated
757757 expect ( precheckResult . result ) . toBeDefined ( ) ;
758- expect ( precheckResult . result ! . nativeTokenBalance ) . not . toBeDefined ( ) ;
758+ expect ( precheckResult . result ! . nativeTokenBalance ) . toBeUndefined ( ) ;
759759 expect ( precheckResult . result ! . tokenInAddress ) . toBe ( SWAP_TOKEN_IN_ADDRESS ) ;
760760 expect ( precheckResult . result ! . tokenInBalance ) . toBeDefined ( ) ;
761761 expect ( BigInt ( precheckResult . result ! . tokenInBalance as string ) ) . toBeGreaterThan ( 0n ) ;
@@ -795,7 +795,7 @@ describe('Uniswap Swap Ability E2E Tests', () => {
795795 console . log ( executeResult ) ;
796796
797797 expect ( executeResult . result ) . toBeDefined ( ) ;
798- expect ( executeResult . result . swapTxHash ) . not . toBeDefined ( ) ;
798+ expect ( executeResult . result . swapTxHash ) . toBeUndefined ( ) ;
799799 expect ( executeResult . result . swapTxUserOperationHash ) . toBeDefined ( ) ;
800800
801801 const swapTxUserOperationHash = executeResult . result . swapTxUserOperationHash ;
0 commit comments