mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
test: specify cli auth epoch shape
This commit is contained in:
@@ -16,7 +16,7 @@ describe("resolveCliAuthEpoch", () => {
|
||||
label = "auth epoch",
|
||||
): asserts epoch is string {
|
||||
expect(typeof epoch, label).toBe("string");
|
||||
expect(epoch?.trim().length, label).toBeGreaterThan(0);
|
||||
expect(epoch, label).toMatch(/^[a-f0-9]{64}$/);
|
||||
}
|
||||
|
||||
it("returns undefined when no local or auth-profile credentials exist", async () => {
|
||||
|
||||
Reference in New Issue
Block a user