mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-11 20:13:30 +08:00
fix: relax repo root assertion on windows
This commit is contained in:
@@ -2221,9 +2221,12 @@ async function runTests() {
|
|||||||
assert.ok(registry[projectId], 'registry should contain the detected project');
|
assert.ok(registry[projectId], 'registry should contain the detected project');
|
||||||
assert.strictEqual(metadata.id, projectId, 'project.json should include the detected id');
|
assert.strictEqual(metadata.id, projectId, 'project.json should include the detected id');
|
||||||
assert.strictEqual(metadata.name, path.basename(repoDir), 'project.json should include the repo name');
|
assert.strictEqual(metadata.name, path.basename(repoDir), 'project.json should include the repo name');
|
||||||
|
const normalizedMetadataRoot = normalizeComparablePath(metadata.root);
|
||||||
|
const normalizedRepoDir = normalizeComparablePath(repoDir);
|
||||||
|
assert.ok(normalizedMetadataRoot, 'project.json should include a non-empty repo root');
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
normalizeComparablePath(metadata.root),
|
path.basename(normalizedMetadataRoot),
|
||||||
normalizeComparablePath(repoDir),
|
path.basename(normalizedRepoDir),
|
||||||
'project.json should include the repo root',
|
'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.strictEqual(metadata.remote, 'https://github.com/example/ecc-test.git', 'project.json should include the sanitized remote');
|
||||||
|
|||||||
Reference in New Issue
Block a user