Skip to content

Commit 9199ad7

Browse files
CrazyBoyMclaude
andcommitted
fix: correct archived directory path in management-manager test
The test was checking for 'archived' directory but the SkillsManagementManager uses '.archived' (with dot prefix). Fixed the test to check the correct path. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ac2445c commit 9199ad7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/core/skills/management-manager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ This is the updated content of SKILL.md.
223223
expect.toBeTruthy(archivedSkills.length > 0);
224224
expect.toEqual(archivedSkills[0].originalName, skillName);
225225

226-
// 验证archived目录存在
227-
const archivedDir = path.join(testSkillsDir, 'archived');
226+
// 验证archived目录存在(注意:使用 .archived 而非 archived)
227+
const archivedDir = path.join(testSkillsDir, '.archived');
228228
expect.toBeTruthy(await fs.access(archivedDir).then(() => true).catch(() => false));
229229
})
230230

0 commit comments

Comments
 (0)