Make use of PurchasesType
inside PurchasesDelegate
to allow mocking
#3039
Labels
PurchasesType
inside PurchasesDelegate
to allow mocking
#3039
Right now, delegate methods are defined using the strongly typed
Purchases
. Therefore, we have to callPurchases.configure
in case we want to write tests for methods like:Instead, if the above delegate method would've been defined as:
We could create a mocked
PurchasesType
to use in our tests. I can see this as another great improvement similar to the TestProducts release.The text was updated successfully, but these errors were encountered: