This commit is contained in:
Mitch-Budibase 2024-02-06 17:28:00 +00:00
parent d7ae4c04b9
commit 3726e10f3a
1 changed files with 4 additions and 3 deletions

View File

@ -48,9 +48,10 @@ describe("license management", () => {
} }
// Create checkout session for price // Create checkout session for price
const checkoutSessionRes = await config.api.stripe.createCheckoutSession( const checkoutSessionRes = await config.api.stripe.createCheckoutSession({
{ id: premiumPrice.priceId, type: premiumPrice.type } id: premiumPrice.priceId,
) type: premiumPrice.type,
})
const checkoutSessionUrl = checkoutSessionRes[1].url const checkoutSessionUrl = checkoutSessionRes[1].url
expect(checkoutSessionUrl).toContain("checkout.stripe.com") expect(checkoutSessionUrl).toContain("checkout.stripe.com")