Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/convert/convert-backticks.test.ts
12925 views
1
/*
2
* convert-backticks.test.ts
3
*
4
* Copyright (C) 2020-2024 Posit Software, PBC
5
*
6
*/
7
import { existsSync } from "../../../src/deno_ral/fs.ts";
8
import {
9
ExecuteOutput,
10
testQuartoCmd,
11
} from "../../test.ts";
12
import { assert } from "testing/asserts";
13
14
(() => {
15
const input = "docs/convert/backticks.ipynb";
16
testQuartoCmd(
17
"convert",
18
["docs/convert/backticks.ipynb"],
19
[
20
{
21
name: "convert-enough-backticks",
22
verify: async (outputs: ExecuteOutput[]) => {
23
const txt = Deno.readTextFileSync("docs/convert/backticks.qmd");
24
assert(txt.includes("````"), "Not enough backticks in output");
25
}
26
}
27
],
28
{
29
teardown: async () => {
30
if (existsSync("docs/convert/backticks.qmd")) {
31
Deno.removeSync("docs/convert/backticks.qmd");
32
}
33
}
34
},
35
);
36
})();
37
38