chore: migrate api-in-app-purchase-spec.ts to vitest

This commit is contained in:
Samuel Attard
2026-04-11 22:58:18 -07:00
parent c9625bea13
commit 68883ece6f

View File

@@ -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');