aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lua/module/pandoc.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lua/module/pandoc.lua b/test/lua/module/pandoc.lua
index 6e8257633..b18a01faa 100644
--- a/test/lua/module/pandoc.lua
+++ b/test/lua/module/pandoc.lua
@@ -148,6 +148,16 @@ return {
end)
}
},
+ group "Inline elements" {
+ test('Link has property `content`', function ()
+ local link = pandoc.Link('example', 'https://example.org')
+ assert.are_same(link.content, {pandoc.Str 'example'})
+
+ link.content = 'commercial'
+ link.target = 'https://example.com'
+ assert.are_equal(link, pandoc.Link('commercial', 'https://example.com'))
+ end)
+ },
group "Block elements" {
group "BulletList" {
test('access items via property `content`', function ()