Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/crossref/equations.test.ts
12921 views
1
/*
2
* equations.test.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*
6
*/
7
8
import { ensureFileRegexMatches, ensureHtmlElements } from "../../verify.ts";
9
import { testRender } from "../render/render.ts";
10
import { crossref } from "./utils.ts";
11
12
const equationsQmd = crossref("equations.qmd", "html");
13
testRender(equationsQmd.input, "html", false, [
14
ensureHtmlElements(equationsQmd.output.outputPath, [
15
"span#eq-black-scholes > span.math",
16
]),
17
ensureFileRegexMatches(equationsQmd.output.outputPath, [
18
/Equation 1/,
19
], [
20
/\?@eq-/,
21
]),
22
]);
23
24