mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Add import for ProductType from 'Model/Models/UsageBilling' in Helpers.ts
This commit is contained in:
@@ -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
|
||||
),
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user