test: specify cli auth epoch shape · openclaw/openclaw@9e77a41
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ describe("resolveCliAuthEpoch", () => {
|
16 | 16 | label = "auth epoch", |
17 | 17 | ): asserts epoch is string { |
18 | 18 | expect(typeof epoch, label).toBe("string"); |
19 | | -expect(epoch?.trim().length, label).toBeGreaterThan(0); |
| 19 | +expect(epoch, label).toMatch(/^[a-f0-9]{64}$/); |
20 | 20 | } |
21 | 21 | |
22 | 22 | it("returns undefined when no local or auth-profile credentials exist", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。