mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
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:
@@ -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/);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user