import { describe, expect, it } from 'vitest'; import { getSkillDisplayInfo } from '@/lib/skill-display'; describe('skill display metadata', () => { it('keeps runtime ids internal and returns Chinese-only learner-facing copy', () => { expect(getSkillDisplayInfo('agent-browser')).toEqual({ name: '开发浏览器', description: '打开、查看或调试本地及公网网页,读取 Console、Network、DOM 和样式信息。', }); }); it('does not expose an unknown external runtime id', () => { const display = getSkillDisplayInfo('repo-audit'); expect(display).toEqual({ name: '自定义技能', description: '用于扩展伙伴能力的自定义工具。', }); expect(`${display.name}${display.description}`).not.toContain('repo-audit'); }); });