Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/crossref/unresolved.test.ts
12921 views
1
/*
2
* unresolved.test.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*
6
*/
7
import { ensureFileRegexMatches } from "../../verify.ts";
8
import { testRender } from "../render/render.ts";
9
import { crossref } from "./utils.ts";
10
11
const simplunresolvedQmd = crossref("unresolved.qmd", "html");
12
testRender(simplunresolvedQmd.input, "html", false, [
13
ensureFileRegexMatches(simplunresolvedQmd.output.outputPath, [
14
/Figure 1: Elephant/,
15
/\?@fig-/,
16
]),
17
]);
18
19