重构:完成架构一致性整改与生命周期收口

This commit is contained in:
Christ committed 2026-08-18 14:05:08 +08:00
1 parent 55904cc409
commit 9eb6be2875
344 files changed
+15961 -13926

No files matched your search

+3 -3
View File
@@ -4,10 +4,10 @@ import { formatLocalDateTime } from './dateTime';
describe('formatLocalDateTime', () => {
test('uses the browser local timezone and the standard second-level format', () => {
expect(formatLocalDateTime(new Date(2026, 6, 15, 10, 54, 12))).toBe('2026-07-15 10:54:12');
} /* 回调函数负责当前业务流程。 */);
} /* 测试回调断言本地时区下的秒级日期时间格式。 */);
test('returns a placeholder for missing or invalid timestamps', () => {
expect(formatLocalDateTime()).toBe('-');
expect(formatLocalDateTime('not-a-date')).toBe('-');
} /* 回调函数负责当前业务流程。 */);
} /* 回调函数负责当前业务流程。 */);
} /* 测试回调断言缺失或非法时间戳使用占位符。 */);
} /* 测试套件回调汇总日期时间格式化契约。 */);