test: consolidate service and process fixtures
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user