test: specify cli auth epoch shape

This commit is contained in:
Shakker
2026-05-12 01:22:56 +01:00
parent 015bf23fe3
commit 9e77a41fcb
+1 -1
View File
@@ -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 () => {