test(cache): 修复CacheConfigTest边界值测试
- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl - 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE - 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查 - 所有1266个测试用例通过 - 覆盖率: 指令81.89%, 行88.48%, 分支51.55% docs: 添加项目状态报告 - 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态 - 包含质量指标、已完成功能、待办事项和技术债务
This commit is contained in:
16
frontend/admin/src/utils/__tests__/risk.test.ts
Normal file
16
frontend/admin/src/utils/__tests__/risk.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { transitionAlertStatus } from '../risk'
|
||||
|
||||
describe('transitionAlertStatus', () => {
|
||||
it('moves from 未处理 to 处理中 when processing', () => {
|
||||
expect(transitionAlertStatus('未处理', 'process')).toBe('处理中')
|
||||
})
|
||||
|
||||
it('moves to 已关闭 when closing', () => {
|
||||
expect(transitionAlertStatus('处理中', 'close')).toBe('已关闭')
|
||||
})
|
||||
|
||||
it('keeps 已关闭 status', () => {
|
||||
expect(transitionAlertStatus('已关闭', 'process')).toBe('已关闭')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user