feat(release): prepare 1.1.0 candidate
This commit is contained in:
parent
5a34f66981
commit
5205dcdfa9
736 changed files with 115667 additions and 12203 deletions
29
apps/mobile-rn/__mocks__/react-native-iap.js
vendored
Normal file
29
apps/mobile-rn/__mocks__/react-native-iap.js
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
const stableUseIapResult = {
|
||||
connected: false,
|
||||
products: [],
|
||||
subscriptions: [],
|
||||
availablePurchases: [],
|
||||
activeSubscriptions: [],
|
||||
fetchProducts: jest.fn(async () => undefined),
|
||||
requestPurchase: jest.fn(async () => undefined),
|
||||
restorePurchases: jest.fn(async () => undefined),
|
||||
reconnect: jest.fn(async () => false),
|
||||
finishTransaction: jest.fn(async () => undefined),
|
||||
getAvailablePurchases: jest.fn(async () => undefined),
|
||||
getActiveSubscriptions: jest.fn(async () => []),
|
||||
hasActiveSubscriptions: jest.fn(async () => false),
|
||||
}
|
||||
|
||||
const getAvailablePurchases = jest.fn(async () => [])
|
||||
|
||||
module.exports = {
|
||||
ErrorCode: {
|
||||
UserCancelled: 'user-cancelled',
|
||||
Pending: 'pending',
|
||||
DeferredPayment: 'deferred-payment',
|
||||
},
|
||||
deepLinkToSubscriptions: jest.fn(async () => undefined),
|
||||
getAvailablePurchases,
|
||||
useIAP: jest.fn(() => stableUseIapResult),
|
||||
__stableUseIapResult: stableUseIapResult,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue