feat: 完善图像工作区与创作工具体验
This commit is contained in:
17
tests/unit/game-engine-skill.test.ts
Normal file
17
tests/unit/game-engine-skill.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
const skillRoot = path.join(process.cwd(), '.opencode', 'skills', 'game-engine');
|
||||
|
||||
describe('bundled game-engine Skill', () => {
|
||||
it('keeps the upstream guidance, Makelore boundaries, templates, references, and license', async () => {
|
||||
const skill = await readFile(path.join(skillRoot, 'SKILL.md'), 'utf8');
|
||||
expect(skill).toContain('name: game-engine');
|
||||
expect(skill).toContain('## Makelore 使用边界');
|
||||
|
||||
await expect(readFile(path.join(skillRoot, 'LICENSE'), 'utf8')).resolves.toContain('MIT License');
|
||||
await expect(readFile(path.join(skillRoot, 'assets', '2d-platform-game.md'), 'utf8')).resolves.toContain('2D Platform Game Template');
|
||||
await expect(readFile(path.join(skillRoot, 'references', 'game-engine-core-principles.md'), 'utf8')).resolves.toContain('game engine');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user