feat(aihr): complete phase two pilot readiness

This commit is contained in:
2026-07-10 19:13:31 +08:00
parent 0219de6fa8
commit 13230e6b9a
48 changed files with 7040 additions and 1647 deletions
@@ -0,0 +1,16 @@
import { describe, expect, it } from 'vitest';
import { resolvePilotDateWindow } from './pilot-export';
describe('resolvePilotDateWindow', () => {
it('returns null when the Element Plus date range is cleared', () => {
expect(resolvePilotDateWindow(null)).toBeNull();
});
it('returns an explicit start and end date only for a complete range', () => {
expect(resolvePilotDateWindow(['2026-07-07', '2026-07-10'])).toEqual({
startDate: '2026-07-07',
endDate: '2026-07-10'
});
});
});