mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-21 04:12:08 +03:00
10 lines
435 B
TypeScript
10 lines
435 B
TypeScript
import { expect, test } from "bun:test"
|
|
import legalSearch from "~/component/site/legal-search.json"
|
|
import { legalSearch as entries } from "~/lib/legal-documents"
|
|
|
|
// The ⌘K search reads these instead of the legal documents (search-index.ts), so they must match
|
|
// the documents. Regenerate with `bun script/legal-search.ts`.
|
|
test("legal-search.json matches the legal documents", () => {
|
|
expect(legalSearch).toEqual(entries())
|
|
})
|