diff options
author | Spencer Williams <spnw@plexwave.org> | 2025-07-10 14:02:03 -0400 |
---|---|---|
committer | Spencer Williams <spnw@plexwave.org> | 2025-07-10 14:02:03 -0400 |
commit | caca4dce67ba849325d258caf105cc2f98873440 (patch) | |
tree | cc9f02cd3265ed50dd92a47c6d75b38c3f468e00 /lisp/seam-test.el | |
parent | 96917b4701014066197c42bfb248e4362401cf2b (diff) |
Fix draft note titles showing up in backlinks
Diffstat (limited to 'lisp/seam-test.el')
-rw-r--r-- | lisp/seam-test.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/seam-test.el b/lisp/seam-test.el index 0abad2b..fc4e2d4 100644 --- a/lisp/seam-test.el +++ b/lisp/seam-test.el @@ -366,6 +366,21 @@ backlink." (insert-file-contents "html/bar.html") (buffer-string)))))) +(ert-deftest seam-test-backlinks-draft () + "Test that linking to a note from a draft note does not create a +backlink." + (should + (equal + "" + (seam-test-with-notes ((seam-export-template-string "{{backlinks}}")) + ((foo "foo" "public" nil t) + (bar "bar" "public")) + (with-current-buffer foo + (seam-test-add-contents foo (seam-test-link-to-buffer bar))) + (with-temp-buffer + (insert-file-contents "html/bar.html") + (buffer-string)))))) + (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." |