test: tighten status json version assertion · openclaw/openclaw@36aa7b6
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
| 2 | +import { VERSION } from "../version.js"; |
2 | 3 | import { resolveStatusUpdateChannelInfo } from "./status-all/format.js"; |
3 | 4 | import { buildStatusJsonPayload } from "./status-json-payload.ts"; |
4 | 5 | |
@@ -41,7 +42,7 @@ describe("status-json-payload", () => {
|
41 | 42 | expect(mocks.normalizeUpdateChannel).toHaveBeenCalledWith("beta"); |
42 | 43 | expect(mocks.resolveUpdateChannelDisplay).toHaveBeenCalledWith({ |
43 | 44 | configChannel: "beta", |
44 | | -currentVersion: expect.any(String), |
| 45 | +currentVersion: VERSION, |
45 | 46 | installKind: "package", |
46 | 47 | gitTag: "v1.2.3", |
47 | 48 | gitBranch: "main", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。