@@ -73,8 +73,8 @@ describe('PurchaseFlow Screen', () => {
73
73
expect ( getByText ( 'Connecting to Store...' ) ) . toBeTruthy ( ) ;
74
74
} ) ;
75
75
76
- it ( 'fetches products and available purchases when connected' , async ( ) => {
77
- const { fetchProducts, getAvailablePurchases } = mockIapState ( ) ;
76
+ it ( 'fetches products when connected' , async ( ) => {
77
+ const { fetchProducts} = mockIapState ( ) ;
78
78
79
79
render ( < PurchaseFlow /> ) ;
80
80
@@ -84,8 +84,6 @@ describe('PurchaseFlow Screen', () => {
84
84
type : 'in-app' ,
85
85
} ) ;
86
86
} ) ;
87
-
88
- expect ( getAvailablePurchases ) . toHaveBeenCalled ( ) ;
89
87
} ) ;
90
88
91
89
it ( 'displays fetched products' , ( ) => {
@@ -115,21 +113,6 @@ describe('PurchaseFlow Screen', () => {
115
113
} ) ;
116
114
} ) ;
117
115
118
- it ( 'handles refresh available purchases' , async ( ) => {
119
- const { getAvailablePurchases} = mockIapState ( {
120
- availablePurchases : [ ] ,
121
- } ) ;
122
-
123
- const { getByText} = render ( < PurchaseFlow /> ) ;
124
-
125
- const refreshButton = getByText ( 'Refresh available purchases' ) ;
126
- fireEvent . press ( refreshButton ! ) ;
127
-
128
- await waitFor ( ( ) => {
129
- expect ( getAvailablePurchases ) . toHaveBeenCalledTimes ( 2 ) ;
130
- } ) ;
131
- } ) ;
132
-
133
116
it ( 'updates state on purchase success callback' , async ( ) => {
134
117
mockIapState ( ) ;
135
118
0 commit comments