From 8dfe6ecf0d37613dea665412a21fa74baaca77b7 Mon Sep 17 00:00:00 2001 From: Cy Okeke Date: Tue, 24 Jun 2025 15:11:43 +0100 Subject: [PATCH] Resolve the failing unit test --- .../cost-summary.component.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/apps/web/src/app/billing/shared/trial-subscription-dialog/cost-summary.component.ts b/apps/web/src/app/billing/shared/trial-subscription-dialog/cost-summary.component.ts index 90602840be3..2ea40add3e6 100644 --- a/apps/web/src/app/billing/shared/trial-subscription-dialog/cost-summary.component.ts +++ b/apps/web/src/app/billing/shared/trial-subscription-dialog/cost-summary.component.ts @@ -17,21 +17,21 @@ import { PricingCalculationService } from "./pricing-calculation.service"; imports: [SharedModule], }) export class CostSummaryComponent { - @Input() organization: Organization; - @Input() sub: OrganizationSubscriptionResponse; - @Input() selectedPlan: PlanResponse; - @Input() selectedInterval: number; - @Input() discountPercentageFromSub: number; - @Input() discountPercentage: number; - @Input() acceptingSponsorship: boolean; - @Input() additionalServiceAccount: number; + @Input() organization?: Organization; + @Input() sub?: OrganizationSubscriptionResponse; + @Input() selectedPlan?: PlanResponse; + @Input() selectedInterval?: number; + @Input() discountPercentageFromSub?: number; + @Input() discountPercentage?: number; + @Input() acceptingSponsorship?: boolean; + @Input() additionalServiceAccount?: number; @Input() planIntervals = PlanInterval; - @Input() totalOpened: boolean; - @Input() storageGb: number; - @Input() isSecretsManagerTrial: boolean; - @Input() estimatedTax: number; + @Input() totalOpened?: boolean; + @Input() storageGb?: number; + @Input() isSecretsManagerTrial?: boolean; + @Input() estimatedTax?: number; discount = 0; - secretsManagerTotal: number; + secretsManagerTotal?: number; constructor(public pricingCalculationService: PricingCalculationService) {}