fix bug 16 and 17
Build & Push / Pipeline Tests (push) Successful in 1m53s
Test / Type Check (all packages) (push) Successful in 56s
Build & Push / Build & Push Docker Image (push) Failing after 4m53s
Test / API Unit Tests (push) Successful in 1m15s
Test / Homepage Unit Tests (push) Successful in 46s
Test / Carplace Unit Tests (push) Successful in 41s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Successful in 42s
Test / API Integration Tests (push) Successful in 1m6s

This commit is contained in:
root
2026-08-04 00:52:58 -04:00
parent 626da23c2e
commit 149806a773
72 changed files with 834 additions and 174 deletions
+7 -3
View File
@@ -6,9 +6,13 @@ import { describe, expect, it } from 'vitest';
describe('homepage pricing configuration', () => {
it('keeps commercial values in one guarded configuration', () => {
expect(pricingCommercialConfig.publicPricesApproved).toBe(false);
expect(pricingCommercialConfig.publicPricesApproved).toBe(true);
expect(pricingCommercialConfig.currency).toBe('MAD');
expect(pricingCommercialConfig.annualDiscountPercent).toBeNull();
expect(pricingCommercialConfig.annualDiscountPercent).toBe(20);
expect(pricingCommercialConfig.monthlyPrices.launch.small).toBe(149);
expect(pricingCommercialConfig.monthlyPrices.growth.growing).toBe(299);
expect(pricingCommercialConfig.monthlyPrices.pro.scale).toBe(399);
expect(pricingCommercialConfig.monthlyPrices.enterprise.enterprise).toBeNull();
});
it('maps every fleet band and plan from localized content', () => {
@@ -20,6 +24,6 @@ describe('homepage pricing configuration', () => {
'scale',
'enterprise',
]);
expect(pricing.plans.map((plan) => plan.id)).toEqual(['launch', 'growth', 'enterprise']);
expect(pricing.plans.map((plan) => plan.id)).toEqual(['launch', 'growth', 'pro', 'enterprise']);
});
});