Skip to content

Commit 9a3b73e

Browse files
committed
test: add unit test for Typst path API
1 parent 7905e0a commit 9a3b73e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function typst_path()
2+
return quarto.paths.typst()
3+
end
4+
5+
return {
6+
["typst"] = typst_path
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
format: html
3+
shortcodes:
4+
- typst-path-api.lua
5+
_quarto:
6+
tests:
7+
html:
8+
ensureFileRegexMatches:
9+
- ["<p>The Typst path is .+.</p>"]
10+
---
11+
12+
The Typst path is "{{< typst >}}".

0 commit comments

Comments
 (0)