mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) add tests for site deletion
Summary: This tests site deletion with and without a plan. Test Plan: adding tests Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D3017
This commit is contained in:
@@ -157,7 +157,7 @@ export class BillingModelImpl extends Disposable implements BillingModel {
|
||||
if (task === 'updatePlan') {
|
||||
// Change plan from a paid plan to another paid plan or to the free plan.
|
||||
if (!planId) { throw new Error('BillingPage _submit error: no plan selected'); }
|
||||
await this._billingAPI.setSubscription(planId, formData.token);
|
||||
await this._billingAPI.setSubscription(planId, {tokenId: formData.token});
|
||||
} else if (task === 'addCard' || task === 'updateCard') {
|
||||
// Add or update payment card.
|
||||
if (!formData.token) { throw new Error('BillingPage _submit error: missing card info token'); }
|
||||
|
||||
Reference in New Issue
Block a user