import { expect, test } from "bun:test" import { aphoristicCadence } from "./aphoristic-cadence" import { checkSource } from "./support/check-source" test.each([ [`
${"Not a tool. A whole new world. ".repeat(3)}
`, 1], [`${"Not a tool. A whole new world. ".repeat(2)}
`, 0], ["Export invoices, send reports, and compare totals.
", 0], ["Not a tool. A whole new world. ".repeat(3), 0], ])("#given clipped page copy #then returns %i findings", (source, count) => { expect(checkSource(aphoristicCadence, source, { path: "a.svelte" })).toHaveLength(count) })