test: consolidate service and process fixtures

This commit is contained in:
morluto
2026-10-08 04:03:24 +08:00
parent d88d6c1897
commit f8a53a8c06
25 changed files with 471 additions and 1176 deletions
-6
View File
@@ -5,7 +5,6 @@ import {
isDigest,
isPrefixedDigest,
prefixedDigestSchema,
SHA256_PATTERN,
} from "./digests.js";
const DIGEST = "a".repeat(64);
@@ -59,9 +58,4 @@ describe("digest shapes", () => {
`jag_${OTHER_DIGEST}`,
);
});
it("exposes the pattern for callers that cannot use zod", () => {
expect(SHA256_PATTERN.test(DIGEST)).toBe(true);
expect(SHA256_PATTERN.test(DIGEST.toUpperCase())).toBe(false);
});
});