(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:
Paul Fitzpatrick
2021-09-13 17:29:35 -04:00
parent 70160fe01c
commit 3e5a292cde
6 changed files with 20 additions and 6 deletions

View File

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