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
search.test.ts
import { describe, expect, it } from "vitest";
import { matchesSearchQuery } from "../services/search.js";

describe("search matching", () => {
  it("matches content in page title", () => {
    expect(matchesSearchQuery("ledger", "Ledger setup", "body")).toBe(true);
  });

  it("matches content in markdown body", () => {
    expect(matchesSearchQuery("incident", "Runbook", "Major incident workflow")).toBe(true);
  });

  it("does not match blank queries", () => {
    expect(matchesSearchQuery("   ", "Runbook", "body")).toBe(false);
  });
});