redesign the homepage
Build & Deploy / Build & Push Docker Image (push) Failing after 47s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / API Unit Tests (push) Failing after 5m4s
Test / Marketplace Unit Tests (push) Failing after 4m55s
Test / Admin Unit Tests (push) Successful in 9m37s
Test / Dashboard Unit Tests (push) Successful in 9m37s
Test / API Integration Tests (push) Successful in 9m54s
Build & Deploy / Build & Push Docker Image (push) Failing after 47s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / API Unit Tests (push) Failing after 5m4s
Test / Marketplace Unit Tests (push) Failing after 4m55s
Test / Admin Unit Tests (push) Successful in 9m37s
Test / Dashboard Unit Tests (push) Successful in 9m37s
Test / API Integration Tests (push) Successful in 9m54s
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { buildHomepageContent } from '@/content/homepage-model';
|
||||
import enHomepage from '@/content/locales/en/homepage.json';
|
||||
import enShell from '@/content/locales/en/shell.json';
|
||||
import { pricingCommercialConfig } from '@/content/pricing-config';
|
||||
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.currency).toBe('USD');
|
||||
expect(pricingCommercialConfig.annualDiscountPercent).toBeNull();
|
||||
});
|
||||
|
||||
it('maps every fleet band and plan from localized content', () => {
|
||||
const pricing = buildHomepageContent(enHomepage, enShell).pricing;
|
||||
|
||||
expect(pricing.fleetBands.map((band) => band.id)).toEqual([
|
||||
'small',
|
||||
'growing',
|
||||
'scale',
|
||||
'enterprise',
|
||||
]);
|
||||
expect(pricing.plans.map((plan) => plan.id)).toEqual(['launch', 'growth', 'enterprise']);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user