patch.moi/apps/patch/test/signatures.test.ts
2026-05-16 00:33:10 +00:00

10 lines
366 B
TypeScript

import { describe, expect, test } from "bun:test";
import { hmacSha256Hex } from "../src/signatures";
describe("flow signatures", () => {
test("builds HMAC-SHA256 digests for flow dispatch signing", async () => {
expect(await hmacSha256Hex("secret", "payload")).toBe(
"b82fcb791acec57859b989b430a826488ce2e479fdf92326bd0a2e8375a42ba4",
);
});
});