NobGit
public anord read

Ledger

Why work hard when you can work easier?

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 86% CSS 10% SQL 3% Shell 1% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/anord/ledger.git
ssh://[email protected]:2222/orgs/anord/ledger.git
webhook.test.ts
import { describe, expect, it } from "vitest";
import { signWebhook } from "../utils/webhook.js";

describe("webhook signing", () => {
  it("generates deterministic hmac signatures", () => {
    expect(signWebhook("secret", '{"event":"page.created"}')).toBe(
      "3bfc8e9ff415966f1405d2ea4c17d5de495bf2c0d7feb228a5e6584cfed3316f"
    );
  });
});