-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathconvert-issue-12440.test.ts
More file actions
41 lines (40 loc) · 1.08 KB
/
convert-issue-12440.test.ts
File metadata and controls
41 lines (40 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* docs/convert/issue-12440.test.ts
*
* Copyright (C) 2025 Posit Software, PBC
*
*/
import { existsSync } from "../../../src/deno_ral/fs.ts";
import { quarto } from "../../../src/quarto.ts";
import {
ExecuteOutput,
testQuartoCmd,
removeFilesTeardown,
} from "../../test.ts";
import { assert } from "testing/asserts";
(() => {
const input = "docs/convert/issue-12440.qmd";
testQuartoCmd(
"convert",
["docs/convert/issue-12440.qmd"],
[
{
name: "convert-mixed-yaml-markdown-cell",
verify: async (outputs: ExecuteOutput[]) => {
await quarto([
"convert",
"docs/convert/issue-12440.ipynb",
"--output",
"docs/convert/issue-12440-out.qmd",
]);
const txt = Deno.readTextFileSync("docs/convert/issue-12440-out.qmd");
assert(txt.includes("title: This is what happens when I don't set the title"), "Markdown text not found in output");
}
}
],
removeFilesTeardown([
"docs/convert/issue-12440-out.qmd",
"docs/convert/issue-12440.ipynb"
]),
);
})();