test(hermes): use parseFrontmatter for agent assertion (CR #2920)
This commit is contained in:
@@ -250,7 +250,8 @@ describe('Hermes Agent: copyCommandsAsClaudeSkills', () => {
|
||||
copyCommandsAsClaudeSkills(srcDir, skillsDir, 'gsd', '/test/', 'hermes', false);
|
||||
|
||||
const content = fs.readFileSync(path.join(skillsDir, 'gsd-execute', 'SKILL.md'), 'utf8');
|
||||
assert.ok(content.includes('agent: gsd-executor'), 'agent field preserved');
|
||||
const fm = parseFrontmatter(content);
|
||||
assert.strictEqual(fm.agent, 'gsd-executor', 'agent field preserved');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user