Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/extensions/extension-render-reveal.test.ts
12925 views
1
/*
2
* extension-render-reveal.test.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*
6
*/
7
8
import { docs, outputForInput } from "../../utils.ts";
9
import { ensureFileRegexMatches } from "../../verify.ts";
10
import { testRender } from "../render/render.ts";
11
12
const input = docs("extensions/revealjs/simple/preso.qmd");
13
const htmlOutput = outputForInput(input, "html");
14
testRender(input, "revealjs", false, [
15
ensureFileRegexMatches(htmlOutput.outputPath, [
16
/pointer\.js/,
17
/RevealPointer/,
18
/'pointer'\: /,
19
]),
20
]);
21
22
const bundleInput = docs("extensions/revealjs/bundle/preso.qmd");
23
const bundleOutput = outputForInput(bundleInput, "html");
24
testRender(bundleInput, "revealjs", false, [
25
ensureFileRegexMatches(bundleOutput.outputPath, [
26
/pointer\.js/,
27
/RevealPointer/,
28
/'pointer'\: /,
29
]),
30
]);
31
32
const embedInput = docs("extensions/revealjs/embedded/preso.qmd");
33
const embedOutput = outputForInput(embedInput, "html");
34
testRender(embedInput, "cool-revealjs", false, [
35
ensureFileRegexMatches(embedOutput.outputPath, [
36
/pointer\.js/,
37
/RevealPointer/,
38
/'pointer'\: /,
39
]),
40
]);
41
42
testRender(embedInput, "revealjs", false, [
43
ensureFileRegexMatches(embedOutput.outputPath, [], [
44
/pointer\.js/,
45
/RevealPointer/,
46
/'pointer'\: /,
47
]),
48
]);
49
50