mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-05-05 17:56:56 +00:00
refactor: Split CLI runner and decouple migration engine for extensibility
Closes #1358
This commit is contained in:
parent
38f66917ae
commit
ea67216bf2
22 changed files with 527 additions and 95 deletions
|
|
@ -132,8 +132,12 @@ describe("binaryManager", () => {
|
|||
const result = await mod.rollbackVersion(tmpDir);
|
||||
// Previous = second highest = 1.0.0
|
||||
assert.equal(result, "1.0.0");
|
||||
const real = fs.realpathSync(path.join(binDir, "cliproxyapi"));
|
||||
assert.ok(real.includes("1.0.0"));
|
||||
if (process.platform === "win32") {
|
||||
assert.equal(fs.readFileSync(path.join(binDir, "cliproxyapi"), "utf8"), "bin-1.0.0");
|
||||
} else {
|
||||
const real = fs.realpathSync(path.join(binDir, "cliproxyapi"));
|
||||
assert.ok(real.includes("1.0.0"));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue