mirror of
https://github.com/electron/electron.git
synced 2026-02-01 10:45:01 -05:00
Throw when inAppPurchase is used on unsupported platforms
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
const assert = require('assert')
|
||||
|
||||
const {remote} = require('electron')
|
||||
const {inAppPurchase} = remote
|
||||
|
||||
describe('inAppPurchase module', () => {
|
||||
if (process.platform !== 'darwin') return
|
||||
|
||||
const {inAppPurchase} = remote
|
||||
|
||||
it('canMakePayments() does not throw', () => {
|
||||
inAppPurchase.canMakePayments()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user