aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/test/lua/module/globals.lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2023-02-09 07:21:40 +0100
committerAlbert Krewinkel <[email protected]>2023-02-09 08:15:13 +0100
commit9eee4a2582822f01cdc46d9576dd9ed17b135e2c (patch)
tree4d39c676acf827e663434cf712c7c81d6e6bdc78 /pandoc-lua-engine/test/lua/module/globals.lua
parent4edc02d3b5b4a297bf0cd9ac2b16bb85c2b15d00 (diff)
Lua: add field `chunk_template` to WriterOptions objects [API change]
The PathTemplate type exported from Text.Pandoc.Chunks is now an instance of the ToJSON and FromJSON classes. Closes: #8607
Diffstat (limited to 'pandoc-lua-engine/test/lua/module/globals.lua')
-rw-r--r--pandoc-lua-engine/test/lua/module/globals.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/pandoc-lua-engine/test/lua/module/globals.lua b/pandoc-lua-engine/test/lua/module/globals.lua
index 72edef036..19fee3e92 100644
--- a/pandoc-lua-engine/test/lua/module/globals.lua
+++ b/pandoc-lua-engine/test/lua/module/globals.lua
@@ -8,6 +8,9 @@ local assert = tasty.assert
-- WriterOptions and its components. UPDATE THE DOCS if anything changes.
return {
group 'PANDOC_WRITER_OPTIONS' {
+ test('chunk_template', function ()
+ assert.are_equal(type(PANDOC_WRITER_OPTIONS.chunk_template), 'string')
+ end),
test('cite_method', function ()
assert.are_equal(type(PANDOC_WRITER_OPTIONS.cite_method), 'string')
end),