test: decouple status update fixture from release version

This commit is contained in:
Peter Steinberger
2026-04-09 03:39:41 +01:00
parent 0512059dd4
commit 90dc0c6ac1

View File

@@ -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,
});
});