Fix PayPal billing flow and mobile admin UX
This commit is contained in:
13
resources/js/admin/mobile/__tests__/packageSummary.test.ts
Normal file
13
resources/js/admin/mobile/__tests__/packageSummary.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user