import { HOSTING_PLAN_SEEDS, productData } from './hosting-plans' describe('hosting plans seed (MITHOME-130)', () => { it('should seed the catalogue figures and prices as a draft, with an English AI draft', () => { const start = productData(HOSTING_PLAN_SEEDS[0], 'hu') expect(start).toMatchObject({ slug: 'mit-start', productType: 'hosting', status: 'draft', enTranslationStatus: 'ai-draft', pricing: { netAmount: 14900, billingPeriod: 'yearly' }, serviceDefinition: { storageGb: 3, mailStorageGb: 1, databases: 1, mailboxes: 5, ssl: true, spamFilter: true }, _status: 'published', }) expect(productData(HOSTING_PLAN_SEEDS[1], 'hu')).toMatchObject({ highlighted: true, pricing: { netAmount: 23900 }, serviceDefinition: { storageGb: 8, mailStorageGb: 4, domainAliases: 2, databases: 2, mailboxes: 10 }, }) }) it('should write only localized fields in English', () => { const en = productData(HOSTING_PLAN_SEEDS[0], 'en') expect(Object.keys(en).sort()).toEqual(['_status', 'public', 'serviceDefinition']) expect(en.serviceDefinition).toEqual({ backup: 'Daily, with 7-day restore' }) }) })