Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/scholar/render-scholar.test.ts
6434 views
1
/*
2
* render-scholar.test.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*
6
*/
7
import { docs, outputForInput } from "../../utils.ts";
8
import { ensureHtmlElements } from "../../verify.ts";
9
import { testRender } from "../render/render.ts";
10
11
const input = docs("scholar/test.qmd");
12
const output = outputForInput(input, "html");
13
testRender(input, "html", false, [
14
ensureHtmlElements(output.outputPath, [
15
"meta[name=citation_keywords]",
16
"meta[name=citation_publication_date]",
17
]),
18
]);
19
20
const inputGen = docs("scholar/generated-bib.qmd");
21
const outputGen = outputForInput(inputGen, "html");
22
testRender(inputGen, "html", false, [
23
ensureHtmlElements(outputGen.outputPath, [
24
"meta[name=citation_keywords]",
25
"meta[name=citation_publication_date]",
26
]),
27
]);
28
29