From eeb86d840115ad5485e5bda2a996948c2001807a Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Thu, 12 Mar 2026 14:46:55 -0700 Subject: [PATCH] fix: keep hook root assertion strict on windows --- tests/hooks/hooks.test.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/hooks/hooks.test.js b/tests/hooks/hooks.test.js index 0dd0a9f7..60aa91f1 100644 --- a/tests/hooks/hooks.test.js +++ b/tests/hooks/hooks.test.js @@ -2224,11 +2224,7 @@ async function runTests() { const normalizedMetadataRoot = normalizeComparablePath(metadata.root); const normalizedRepoDir = normalizeComparablePath(repoDir); assert.ok(normalizedMetadataRoot, 'project.json should include a non-empty repo root'); - assert.strictEqual( - path.basename(normalizedMetadataRoot), - path.basename(normalizedRepoDir), - 'project.json should include the repo root', - ); + assert.strictEqual(normalizedMetadataRoot, normalizedRepoDir, 'project.json should include the repo root'); assert.strictEqual(metadata.remote, 'https://github.com/example/ecc-test.git', 'project.json should include the sanitized remote'); assert.ok(metadata.created_at, 'project.json should include created_at'); assert.ok(metadata.last_seen, 'project.json should include last_seen');