fix: use valid model name in colon-in-values frontmatter test

The test was using 'claude-sonnet-4-5-20250929' which isn't in VALID_MODELS
(haiku/sonnet/opus). Use 'sonnet' with a description field containing
colons to properly test colon handling in frontmatter values.
This commit is contained in:
Affaan Mustafa
2026-02-12 17:33:17 -08:00
parent 926eba97c5
commit 39280e251b

View File

@@ -193,7 +193,7 @@ function runTests() {
if (test('handles frontmatter with colons in values', () => {
const testDir = createTestDir();
fs.writeFileSync(path.join(testDir, 'colon-agent.md'), '---\nmodel: claude-sonnet-4-5-20250929\ntools: Read, Write, Bash\n---\n# Agent');
fs.writeFileSync(path.join(testDir, 'colon-agent.md'), '---\nmodel: sonnet\ntools: Read, Write, Bash\ndescription: Run this: always check: everything\n---\n# Agent');
const result = runValidatorWithDir('validate-agents', 'AGENTS_DIR', testDir);
assert.strictEqual(result.code, 0, 'Should handle colons in values');