Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test: normalize zed install path assertion

Affaan Mustafa744f4169972f
diff --git a/tests/lib/selective-install.test.js b/tests/lib/selective-install.test.js
index 5509d12a4..c680c71b2 100644
--- a/tests/lib/selective-install.test.js
+++ b/tests/lib/selective-install.test.js
@@ -27,6 +27,10 @@ const {
resolveInstallPlan,
} = require('../../scripts/lib/install-manifests');
+function normalizePlanPath(value) {
+ return String(value || '').replace(/\\/g, '/');
+}
+
function test(name, fn) {
try {
fn();
@@ -542,7 +546,7 @@ function runTests() {
assert.strictEqual(parsed.plan.adapter.id, 'zed-project');
assert.strictEqual(parsed.plan.installRoot, path.join(fs.realpathSync(projectDir), '.zed'));
assert.ok(
- parsed.plan.operations.some(operation => operation.sourceRelativePath === '.zed/settings.json'),
+ parsed.plan.operations.some(operation => normalizePlanPath(operation.sourceRelativePath) === '.zed/settings.json'),
'Should include Zed native settings operation'
);
assert.ok(