acupedia-store-ui/tests/unit/constants/modules.test.ts

19 lines
776 B
TypeScript

import { describe, expect, it } from 'vitest';
import { CURRICULUM_MODULES } from '../../../src/constants/modules';
describe('CURRICULUM_MODULES', () => {
it('contains all core categories, complete packs, and lifetime pass with valid prices', () => {
expect(CURRICULUM_MODULES.length).toBeGreaterThanOrEqual(15);
const categories = new Set(CURRICULUM_MODULES.map((m) => m.category));
expect(categories).toEqual(new Set(['Points', 'Pattern', 'Nutrition', 'Therapeutics', 'Lifetime']));
for (const mod of CURRICULUM_MODULES) {
expect(mod.code).toBeTruthy();
expect(mod.name).toBeTruthy();
expect(mod.priceInr).toBeGreaterThan(0);
expect(mod.priceUsd).toBeGreaterThan(0);
expect(mod.priceEur).toBeGreaterThan(0);
}
});
});