Path: blob/main/tests/smoke/extensions/extension-render-doc.test.ts
12921 views
/*1* extension-render-doc.test.ts2*3* Copyright (C) 2020-2022 Posit Software, PBC4*5*/67import { docs, outputForInput } from "../../utils.ts";8import { ensureHtmlElements } from "../../verify.ts";9import { testRender } from "../render/render.ts";1011const input = docs("extensions/basic/shortcodes.qmd");12const htmlOutput = outputForInput(input, "html");13testRender(input, "html", false, [14ensureHtmlElements(htmlOutput.outputPath, [15// callout environments are created16"i.fa-regular.fa-heart",17"i.fa-solid.fa-heart",18], [19"script[src='shortcodes_files/libs/quarto-contrib/glightbox/glightbox.min.js']",20]),21]);2223const filterInput = docs("extensions/basic/filter.qmd");24const filterOutput = outputForInput(filterInput, "html");25testRender(filterInput, "html", false, [26ensureHtmlElements(filterOutput.outputPath, [27// callout environments are created28"a.lightbox",29]),30]);3132const formatInput = docs("extensions/basic/format.qmd");33testRender(formatInput, "jss-html", false);3435const revealInput = docs("extensions/lexcorp/lexcorp.qmd");36const revealOutput = outputForInput(revealInput, "html");37testRender(revealInput, "lexcorp-revealjs", false, [38ensureHtmlElements(revealOutput.outputPath, [39"img[src='_extensions/lexcorp/logo.png']",40]),41]);424344