aboutsummaryrefslogtreecommitdiff
path: root/seam-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'seam-test.el')
-rw-r--r--seam-test.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/seam-test.el b/seam-test.el
index 0b7df1c..7d10f94 100644
--- a/seam-test.el
+++ b/seam-test.el
@@ -47,6 +47,7 @@
(seam-title-formatter (lambda (title _type) title))
(seam-export-template-file nil)
(seam-export-template-string seam-export-default-template-string)
+ (seam-export-internal-link-class nil)
(seam-export-alist
`((,(file-name-concat seam-test-directory "html")
:types ("public")
@@ -254,6 +255,20 @@ extension."
(buffer-string)
(re-search-forward "<a href=\"/bar\">"))))))
+(ert-deftest seam-test-link-internal-class ()
+ "Test that setting `seam-export-internal-link-class' correctly renders
+the class."
+ (should
+ (identity
+ (seam-test-with-notes ((seam-export-internal-link-class "internal"))
+ ((foo "foo" "public")
+ (bar "bar" "public"))
+ (seam-test-add-contents foo (seam-test-link-to-buffer bar))
+ (with-temp-buffer
+ (insert-file-contents "html/foo.html")
+ (buffer-string)
+ (re-search-forward "<a href=\"/bar.html\" class=\"internal\">"))))))
+
(ert-deftest seam-test-link-getters ()
(should
(equal