Path: blob/main/tests/smoke/extensions/extension-render-reveal.test.ts
12925 views
/*1* extension-render-reveal.test.ts2*3* Copyright (C) 2020-2022 Posit Software, PBC4*5*/67import { docs, outputForInput } from "../../utils.ts";8import { ensureFileRegexMatches } from "../../verify.ts";9import { testRender } from "../render/render.ts";1011const input = docs("extensions/revealjs/simple/preso.qmd");12const htmlOutput = outputForInput(input, "html");13testRender(input, "revealjs", false, [14ensureFileRegexMatches(htmlOutput.outputPath, [15/pointer\.js/,16/RevealPointer/,17/'pointer'\: /,18]),19]);2021const bundleInput = docs("extensions/revealjs/bundle/preso.qmd");22const bundleOutput = outputForInput(bundleInput, "html");23testRender(bundleInput, "revealjs", false, [24ensureFileRegexMatches(bundleOutput.outputPath, [25/pointer\.js/,26/RevealPointer/,27/'pointer'\: /,28]),29]);3031const embedInput = docs("extensions/revealjs/embedded/preso.qmd");32const embedOutput = outputForInput(embedInput, "html");33testRender(embedInput, "cool-revealjs", false, [34ensureFileRegexMatches(embedOutput.outputPath, [35/pointer\.js/,36/RevealPointer/,37/'pointer'\: /,38]),39]);4041testRender(embedInput, "revealjs", false, [42ensureFileRegexMatches(embedOutput.outputPath, [], [43/pointer\.js/,44/RevealPointer/,45/'pointer'\: /,46]),47]);484950