import { expect, test } from "bun:test" import { monotonousSpacing } from "./monotonous-spacing" import { checkSource } from "./support/check-source" test.each([ [`${'
'.repeat(10)}`, 1], [`${'
'.repeat(10)}`, 0], [`${'
'.repeat(9)}`, 0], [`${[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((n) => `
`).join("")}`, 0], ['
'.repeat(10), 0], ])("#given page spacing source #then returns %i findings", (source, count) => { expect(checkSource(monotonousSpacing, source, { path: "a.astro" })).toHaveLength(count) })