mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
chore: migrate api-in-app-purchase-spec.ts to vitest
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
import { inAppPurchase } from 'electron/main';
|
||||
|
||||
import { expect } from 'chai';
|
||||
import { describe, it } from 'vitest';
|
||||
|
||||
import { ifdescribe } from './lib/spec-helpers';
|
||||
|
||||
describe('inAppPurchase module', function () {
|
||||
describe('inAppPurchase module', { timeout: 3 * 60 * 1000 }, () => {
|
||||
if (process.platform !== 'darwin') return;
|
||||
|
||||
this.timeout(3 * 60 * 1000);
|
||||
|
||||
it('canMakePayments() returns a boolean', () => {
|
||||
const canMakePayments = inAppPurchase.canMakePayments();
|
||||
expect(canMakePayments).to.be.a('boolean');
|
||||
Reference in New Issue
Block a user