diff options
author | Spencer Williams <spnw@plexwave.org> | 2025-04-07 22:54:14 -0400 |
---|---|---|
committer | Spencer Williams <spnw@plexwave.org> | 2025-04-07 22:54:14 -0400 |
commit | 43a82661831aa7d1fd019484789c2cf113f3a0a4 (patch) | |
tree | 79b294f71907768de21b8ee32d6facf8ac0fce35 /lisp | |
parent | 991cc76d1b52fd072debe04e803d5eb544b36f99 (diff) |
Update changelog
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/seam-test.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/seam-test.el b/lisp/seam-test.el index e7658dd..5d4a562 100644 --- a/lisp/seam-test.el +++ b/lisp/seam-test.el @@ -358,6 +358,20 @@ backlink." (insert-file-contents "html/bar.html") (re-search-forward "<a href=\"/foo.html\">"))))) +(ert-deftest seam-test-backlinks-comment () + "Test that a commented-out link does not add a backlink." + :expected-result :failed + (should-error + (identity + (seam-test-with-notes ((seam-export-template-string "{{backlinks}}")) + ((foo "foo" "public") + (bar "bar" "public")) + (with-current-buffer foo + (seam-test-add-contents foo (concat "# " (seam-test-link-to-buffer bar)))) + (with-temp-buffer + (insert-file-contents "html/bar.html") + (re-search-forward "<a href=\"/foo.html\">")))))) + (ert-deftest seam-test-set-type-private () "Test that setting a public note to private will delete its HTML file and update linking HTML files such that they no longer link to it." |