From 206c5023d7d3ca7797a4dbf5454b2d1b175c3f9c Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 26 Dec 2023 11:47:13 +0000 Subject: [PATCH] Add import for ProductType from 'Model/Models/UsageBilling' in Helpers.ts --- CommonServer/Tests/TestingUtils/Services/Helpers.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CommonServer/Tests/TestingUtils/Services/Helpers.ts b/CommonServer/Tests/TestingUtils/Services/Helpers.ts index 252c1e90a1..ab71b3ccb2 100644 --- a/CommonServer/Tests/TestingUtils/Services/Helpers.ts +++ b/CommonServer/Tests/TestingUtils/Services/Helpers.ts @@ -14,6 +14,7 @@ import { ChangePlan, CouponData, } from '../../TestingUtils/Services/Types'; +import { ProductType } from 'Model/Models/UsageBilling'; /// @dev consider modifyfing the EnvirontmentConfig to use functions instead of constants so that we can mock them const mockIsBillingEnabled: Function = (value: boolean): BillingService => { @@ -57,7 +58,11 @@ const getStripeSubscription: Function = (): Stripe.Subscription => { { id: faker.datatype.uuid(), // @ts-ignore - price: { id: faker.datatype.uuid() }, + price: { + id: new BillingService().getMeteredPlanPriceId( + ProductType.ActiveMonitoring + ), + }, }, ], },