import { ensureFileRegexMatches, ensureHtmlElements } from "../../verify.ts";
import { testRender } from "../render/render.ts";
import { crossref } from "./utils.ts";
const chaptersQmd = crossref("chapters.qmd", "html");
testRender(chaptersQmd.input, "html", false, [
ensureHtmlElements(chaptersQmd.output.outputPath, [
"div#fig-elephant > figure > figcaption.quarto-float-fig.quarto-float-caption",
]),
ensureFileRegexMatches(chaptersQmd.output.outputPath, [
/Figure 1.1/,
/Figure 1.1: Elephant/,
], [
/\?@fig-/,
]),
]);