@@ -32,6 +32,7 @@ import { useIsGaslessSupported } from '../../../hooks/gas/useIsGaslessSupported'
3232import { useInsufficientBalanceAlerts } from '../../../hooks/alerts/transactions/useInsufficientBalanceAlerts' ;
3333import { useIsGaslessLoading } from '../../../hooks/gas/useIsGaslessLoading' ;
3434import { useConfirmationNavigation } from '../../../hooks/useConfirmationNavigation' ;
35+ import { useUserSubscriptions } from '../../../../../hooks/subscription/useSubscription' ;
3536import Footer from './footer' ;
3637
3738jest . mock ( '../../../hooks/gas/useIsGaslessLoading' ) ;
@@ -59,6 +60,7 @@ jest.mock(
5960) ;
6061
6162jest . mock ( '../../../hooks/useOriginThrottling' ) ;
63+ jest . mock ( '../../../../../hooks/subscription/useSubscription' ) ;
6264
6365jest . mock ( 'react-router-dom-v5-compat' , ( ) => ( {
6466 useNavigate : jest . fn ( ) ,
@@ -86,6 +88,7 @@ describe('ConfirmFooter', () => {
8688 ) ;
8789 const useIsGaslessLoadingMock = jest . mocked ( useIsGaslessLoading ) ;
8890 const useConfirmationNavigationMock = jest . mocked ( useConfirmationNavigation ) ;
91+ const useUserSubscriptionsMock = jest . mocked ( useUserSubscriptions ) ;
8992
9093 beforeEach ( ( ) => {
9194 mockUseOriginThrottling . mockReturnValue ( {
@@ -100,6 +103,13 @@ describe('ConfirmFooter', () => {
100103 useIsGaslessLoadingMock . mockReturnValue ( {
101104 isGaslessLoading : false ,
102105 } ) ;
106+
107+ useUserSubscriptionsMock . mockReturnValue ( {
108+ trialedProducts : [ ] ,
109+ loading : false ,
110+ subscriptions : [ ] ,
111+ error : undefined ,
112+ } ) ;
103113 } ) ;
104114
105115 it ( 'should match snapshot with signature confirmation' , ( ) => {
0 commit comments