Files
makelore/tests/unit/skill-display.test.ts
inman 22add3f01f
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled
完善客户端模块与工作区能力
2026-08-13 19:51:02 +08:00

21 lines
809 B
TypeScript

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');
});
});