fix(test): align auto-update test sync-env path with FASE 1 move

FASE 1 moved scripts/sync-env.mjs to scripts/dev/sync-env.mjs. The implementation
(src/lib/system/autoUpdate.ts) was updated, but two test assertions still referenced
the old path. Updates the regex matchers to the new path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
diegosouzapw
2026-05-13 16:46:20 -03:00
parent 4968de9405
commit eb62ad72f1
2 changed files with 2 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ describe("buildSourceUpdateScript", () => {
assert.match(script, /git fetch --tags 'upstream'/);
assert.match(script, /git checkout "v3\.2\.6"/);
assert.match(script, /node scripts\/sync-env\.mjs 2>\/dev\/null \|\| true/);
assert.match(script, /node scripts\/dev\/sync-env\.mjs 2>\/dev\/null \|\| true/);
assert.match(script, /pm2 restart omniroute --update-env \|\| true/);
});
});

View File

@@ -254,7 +254,7 @@ test("auto update script builders generate npm, source, and docker-compose scrip
const sourceScript = autoUpdate.buildSourceUpdateScript("3.6.0", "upstream");
assert.match(sourceScript, /git fetch --tags 'upstream'/);
assert.match(sourceScript, /git stash --include-untracked/);
assert.match(sourceScript, /node scripts\/sync-env\.mjs 2>\/dev\/null \|\| true/);
assert.match(sourceScript, /node scripts\/dev\/sync-env\.mjs 2>\/dev\/null \|\| true/);
assert.match(sourceScript, /Successfully updated to v3\.6\.0/);
const dockerScript = autoUpdate.buildDockerComposeUpdateScript({