test: 补路由鉴权、配置回滚与 Agent 版本兼容测试并发布 v1.5.3

This commit is contained in:
2026-09-28 15:53:36 +08:00
parent 0feb6132d6
commit 21efc10536
21 changed files with 570 additions and 58 deletions
+14
View File
@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest'
import { agentVersionText } from './agent'
describe('agentVersionText', () => {
it('有版本号时原样展示', () => {
expect(agentVersionText('0.14.1')).toBe('0.14.1')
})
it('旧 Agent 缺少版本字段时降级为占位符', () => {
expect(agentVersionText()).toBe('—')
expect(agentVersionText('')).toBe('—')
expect(agentVersionText(' ')).toBe('—')
})
})