import { currentSalaryMonth, previousSalaryMonth, getPositionSalaryTemplate, getSalaryTemplate, resolveSalaryMonth, salaryDetailsHref, salaryMonthLabel } from '@/lib/performance-salary-templates' import { INITIAL_SALARY_POSITIONS } from '@/lib/salary-position-seeds' describe('薪资模板月份与字段', () => { test('上海时区跨月及非法查询参数', () => { const now = new Date('2026-12-31T16:00:00Z') expect(currentSalaryMonth(now)).toBe('2027-01') for (const value of [undefined, '', '2026-13', '2026-1', '0000-01', ['2026-09'], '2026-09