public
anord
read
Ledger
Why work hard when you can work easier?
Languages
Repository composition by tracked source files.
TypeScript
86%
CSS
10%
SQL
3%
Shell
1%
HTML
0%
Trace
apps/api/src/test/webhook.test.ts
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
import { describe, expect, it } from "vitest";
2
import { signWebhook } from "../utils/webhook.js";
4
describe("webhook signing", () => {
5
it("generates deterministic hmac signatures", () => {
6
expect(signWebhook("secret", '{"event":"page.created"}')).toBe(
7
"3bfc8e9ff415966f1405d2ea4c17d5de495bf2c0d7feb228a5e6584cfed3316f"
8
);
9
});
10
});