diff options
Diffstat (limited to 'test/lua/module')
-rw-r--r-- | test/lua/module/pandoc.lua | 10 |
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 () |