mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: decouple status update fixture from release version
This commit is contained in:
@@ -56,6 +56,8 @@ describe("status-all format", () => {
|
||||
});
|
||||
|
||||
it("builds shared update surface values", () => {
|
||||
const newerRegistryVersion = "9999.0.0";
|
||||
|
||||
expect(
|
||||
buildStatusUpdateSurface({
|
||||
updateConfigChannel: "stable",
|
||||
@@ -71,7 +73,7 @@ describe("status-all format", () => {
|
||||
fetchOk: true,
|
||||
},
|
||||
registry: {
|
||||
latestVersion: "2026.4.9",
|
||||
latestVersion: newerRegistryVersion,
|
||||
},
|
||||
} as never,
|
||||
}),
|
||||
@@ -83,7 +85,7 @@ describe("status-all format", () => {
|
||||
},
|
||||
channelLabel: "stable (config)",
|
||||
gitLabel: "main · tag v1.2.3",
|
||||
updateLine: "git main · ↔ origin/main · behind 2 · npm update 2026.4.9",
|
||||
updateLine: `git main · ↔ origin/main · behind 2 · npm update ${newerRegistryVersion}`,
|
||||
updateAvailable: true,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user