From 6b9ee44e1944195cd4c57a9e5b811a0c32e4f739 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Wed, 6 May 2026 15:34:29 -0400 Subject: [PATCH] test(rename): align Copilot and ingest-docs assertions with Agent tool --- tests/copilot-install.test.cjs | 2 +- tests/ingest-docs.test.cjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/copilot-install.test.cjs b/tests/copilot-install.test.cjs index 31a0c84d0..020de5a39 100644 --- a/tests/copilot-install.test.cjs +++ b/tests/copilot-install.test.cjs @@ -675,7 +675,7 @@ describe('copyCommandsAsCopilotSkills', () => { // argument-hint round-trips assert.equal(fm['argument-hint'], '[--from N] [--to N] [--only N] [--interactive]', 'argument-hint round-trips'); // allowed-tools comma-separated - assert.ok(skillContent.includes('allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, Task'), + assert.ok(skillContent.includes('allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, Agent'), 'allowed-tools is comma-separated'); // No Claude-format remnants assert.ok(!skillContent.includes('allowed-tools:\n -'), 'NOT YAML multiline format'); diff --git a/tests/ingest-docs.test.cjs b/tests/ingest-docs.test.cjs index f82e5a262..1b365d2ab 100644 --- a/tests/ingest-docs.test.cjs +++ b/tests/ingest-docs.test.cjs @@ -60,9 +60,9 @@ describe('ingest-docs command frontmatter', () => { assert.ok(m[1].includes('--manifest'), 'argument-hint should mention --manifest'); assert.ok(m[1].includes('--resolve'), 'argument-hint should mention --resolve'); }); - test('allowed-tools include AskUserQuestion and Task', () => { + test('allowed-tools include AskUserQuestion and Agent', () => { assert.ok(content.includes('AskUserQuestion'), 'command needs AskUserQuestion for gates'); - assert.ok(content.includes('- Task'), 'command needs Task for agent spawns'); + assert.ok(content.includes('- Agent'), 'command needs Agent for agent spawns'); }); });