Files
fotospiel-app/resources/js/admin/mobile/__tests__/packageSummary.test.ts
Codex Agent 0d7a861875
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled
Fix PayPal billing flow and mobile admin UX
2026-02-05 10:19:29 +01:00

14 lines
512 B
TypeScript

import { describe, expect, it } from 'vitest';
import { getPackageLimitEntries } from '../lib/packageSummary';
const t = (_key: string, fallback?: string) => fallback ?? _key;
describe('getPackageLimitEntries', () => {
it('defaults endcustomer event limit to 1 when missing', () => {
const entries = getPackageLimitEntries({}, t, {}, { packageType: 'endcustomer' });
const eventEntry = entries.find((entry) => entry.key === 'max_events_per_year');
expect(eventEntry?.value).toBe('1');
});
});