@@ -193,12 +193,12 @@ describe("Purchases", () => {
193
193
194
194
Purchases . makePurchase ( "onemonth_freetrial" ) ;
195
195
196
- expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , null , "subs" ) ;
196
+ expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , null , "subs" , null ) ;
197
197
expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledTimes ( 1 ) ;
198
198
199
199
Purchases . makePurchase ( "onemonth_freetrial" , "viejo" , Purchases . PURCHASE_TYPE . INAPP ) ;
200
200
201
- expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , { oldSKU : "viejo" } , Purchases . PURCHASE_TYPE . INAPP ) ;
201
+ expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , { oldSKU : "viejo" } , Purchases . PURCHASE_TYPE . INAPP , null ) ;
202
202
expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledTimes ( 2 ) ;
203
203
} ) ;
204
204
@@ -212,22 +212,22 @@ describe("Purchases", () => {
212
212
213
213
Purchases . purchaseProduct ( "onemonth_freetrial" )
214
214
215
- expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , undefined , "subs" ) ;
215
+ expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , undefined , "subs" , null ) ;
216
216
expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledTimes ( 1 ) ;
217
217
218
218
Purchases . purchaseProduct ( "onemonth_freetrial" , {
219
219
oldSKU : "viejo"
220
220
} , Purchases . PURCHASE_TYPE . INAPP )
221
221
222
- expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , { oldSKU : "viejo" } , Purchases . PURCHASE_TYPE . INAPP ) ;
222
+ expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , { oldSKU : "viejo" } , Purchases . PURCHASE_TYPE . INAPP , null ) ;
223
223
expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledTimes ( 2 ) ;
224
224
225
225
Purchases . purchaseProduct ( "onemonth_freetrial" , {
226
226
oldSKU : "viejo" ,
227
227
prorationMode : Purchases . PRORATION_MODE . DEFERRED
228
228
} , Purchases . PURCHASE_TYPE . INAPP )
229
229
230
- expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , { oldSKU : "viejo" , prorationMode : Purchases . PRORATION_MODE . DEFERRED } , Purchases . PURCHASE_TYPE . INAPP ) ;
230
+ expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledWith ( "onemonth_freetrial" , { oldSKU : "viejo" , prorationMode : Purchases . PRORATION_MODE . DEFERRED } , Purchases . PURCHASE_TYPE . INAPP , null ) ;
231
231
expect ( NativeModules . RNPurchases . purchaseProduct ) . toBeCalledTimes ( 3 ) ;
232
232
} ) ;
233
233
0 commit comments