mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:28:27 +00:00
chore: bump version to 2026.1.21
This commit is contained in:
@@ -29,19 +29,19 @@ describe("resolveNpmChannelTag", () => {
|
||||
|
||||
it("falls back to latest when beta is older", async () => {
|
||||
versionByTag.beta = "2026.1.19-beta.1";
|
||||
versionByTag.latest = "2026.1.20-1";
|
||||
versionByTag.latest = "2026.1.21-1";
|
||||
|
||||
const resolved = await resolveNpmChannelTag({ channel: "beta", timeoutMs: 1000 });
|
||||
|
||||
expect(resolved).toEqual({ tag: "latest", version: "2026.1.20-1" });
|
||||
expect(resolved).toEqual({ tag: "latest", version: "2026.1.21-1" });
|
||||
});
|
||||
|
||||
it("keeps beta when beta is not older", async () => {
|
||||
versionByTag.beta = "2026.1.20-beta.1";
|
||||
versionByTag.latest = "2026.1.20-1";
|
||||
versionByTag.beta = "2026.1.21-beta.1";
|
||||
versionByTag.latest = "2026.1.21-1";
|
||||
|
||||
const resolved = await resolveNpmChannelTag({ channel: "beta", timeoutMs: 1000 });
|
||||
|
||||
expect(resolved).toEqual({ tag: "beta", version: "2026.1.20-beta.1" });
|
||||
expect(resolved).toEqual({ tag: "beta", version: "2026.1.21-beta.1" });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user