From 744f4169972fd81618c3114ea1ca5ffb85ef4c82 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Sun, 17 May 2026 07:27:05 -0400 Subject: [PATCH] test: normalize zed install path assertion --- tests/lib/selective-install.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/lib/selective-install.test.js b/tests/lib/selective-install.test.js index 5509d12a..c680c71b 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(