@@ -3,6 +3,7 @@ module Tests.Writers.Jira (tests) where
33
44import Data.Text (unpack)
55import Test.Tasty
6+import Test.Tasty.HUnit (HasCallStack)
67import Tests.Helpers
78import Text.Pandoc
89import Text.Pandoc.Arbitrary ()
@@ -12,7 +13,7 @@ jira :: (ToPandoc a) => a -> String
1213jira = unpack . purely (writeJira def) . toPandoc
1314
1415infix 4 =:
15−(=:) :: (ToString a, ToPandoc a)
16+(=:) :: (ToString a, ToPandoc a, HasCallStack)
1617 => String -> (a, String) -> TestTree
1718(=:) = test jira
1819
@@ -61,5 +62,11 @@ tests =
6162 linkWith ("", ["user-account"], []) "~johndoe" "" "~johndoe" =?>
6263 "[~johndoe]"
6364 ]
65+
66+ , testGroup "spans"
67+ [ "id is used as anchor" =:
68+ spanWith ("unicorn", [], []) (str "Unicorn") =?>
69+ "{anchor:unicorn}Unicorn"
70+ ]
6471 ]
6572 ]