Add import for ProductType from 'Model/Models/UsageBilling' in Helpers.ts

This commit is contained in:
Simon Larsen
2023-12-26 11:47:13 +00:00
parent 8584726d22
commit 206c5023d7

View File

@@ -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
),
},
},
],
},