From 94c59b1707efd3bcba82c26200c2006f0ae14500 Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Sun, 10 Nov 2024 18:13:25 +0300 Subject: [PATCH] Update tests --- test/integration/cases/billing/check.test.ts | 2 ++ test/integration/cases/billing/fail.test.ts | 1 + test/integration/cases/billing/pay.test.ts | 2 ++ test/integration/cases/billing/recurrent.test.ts | 1 + 4 files changed, 6 insertions(+) diff --git a/test/integration/cases/billing/check.test.ts b/test/integration/cases/billing/check.test.ts index 757f95a3..210a9107 100644 --- a/test/integration/cases/billing/check.test.ts +++ b/test/integration/cases/billing/check.test.ts @@ -40,6 +40,7 @@ describe('Check webhook', () => { const currentPlan = (await plans.insertOne({ name: 'CurrentTestPlan', monthlyCharge: 10, + monthlyChargeCurrency: 'USD', eventsLimit: 1000, isDefault: false, })).ops[0]; @@ -65,6 +66,7 @@ describe('Check webhook', () => { planToChange = (await plans.insertOne({ name: 'BasicTest', monthlyCharge: 20, + monthlyChargeCurrency: 'USD', eventsLimit: 10000, isDefault: false, })).ops[0]; diff --git a/test/integration/cases/billing/fail.test.ts b/test/integration/cases/billing/fail.test.ts index d361333b..fe9303ac 100644 --- a/test/integration/cases/billing/fail.test.ts +++ b/test/integration/cases/billing/fail.test.ts @@ -44,6 +44,7 @@ const tariffPlan: PlanDBScheme = { eventsLimit: 10000, isDefault: true, monthlyCharge: 100, + monthlyChargeCurrency: 'USD', name: 'Test plan', }; diff --git a/test/integration/cases/billing/pay.test.ts b/test/integration/cases/billing/pay.test.ts index cbe39d4d..7f62d3e5 100644 --- a/test/integration/cases/billing/pay.test.ts +++ b/test/integration/cases/billing/pay.test.ts @@ -27,6 +27,7 @@ const currentPlan: PlanDBScheme = { eventsLimit: 1000, isDefault: true, monthlyCharge: 1000, + monthlyChargeCurrency: 'USD', name: 'Test plan', }; @@ -62,6 +63,7 @@ const planToChange: PlanDBScheme = { eventsLimit: 10000, isDefault: true, monthlyCharge: 100, + monthlyChargeCurrency: 'USD', name: 'Test plan', }; diff --git a/test/integration/cases/billing/recurrent.test.ts b/test/integration/cases/billing/recurrent.test.ts index a6680675..11c47753 100644 --- a/test/integration/cases/billing/recurrent.test.ts +++ b/test/integration/cases/billing/recurrent.test.ts @@ -9,6 +9,7 @@ const currentPlan: PlanDBScheme = { eventsLimit: 1000, isDefault: true, monthlyCharge: 1000, + monthlyChargeCurrency: 'USD', name: 'Test plan', };