From 36098cff95abc83656331ea88b3a6bd13d45a756 Mon Sep 17 00:00:00 2001 From: Anicca Agent Date: Tue, 28 Jul 2026 17:54:31 +0900 Subject: [PATCH] test: normalize cwd fallback expectations --- test/skills.test.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/skills.test.mjs b/test/skills.test.mjs index d256e20..1067879 100644 --- a/test/skills.test.mjs +++ b/test/skills.test.mjs @@ -15,8 +15,11 @@ test("skillName derives from a git url or path, or takes an override", () => { }); test("skillName never yields `.` or `..`, which would escape the skills dir", () => { - const here = path.basename(process.cwd()); - const parent = path.basename(path.dirname(process.cwd())); + // skillName normalizes every derived name to lowercase, including the + // cwd-based fallback. Keep this portable when a checkout lives below an + // uppercase directory such as ~/Projects. + const here = path.basename(process.cwd()).toLowerCase(); + const parent = path.basename(path.dirname(process.cwd())).toLowerCase(); assert.equal(skillName("."), here); assert.equal(skillName("./"), here); assert.equal(skillName("a/b/."), "b");