diff options
author | Spencer Williams <spnw@plexwave.org> | 2025-04-06 22:24:22 -0400 |
---|---|---|
committer | Spencer Williams <spnw@plexwave.org> | 2025-04-06 22:24:22 -0400 |
commit | 7e661196a239a29f995eb12073da440406facdd3 (patch) | |
tree | 5aa91b43af871e2fabb8fed8d4cdf50c989fd9f2 /seam-test.el | |
parent | 114fdf2eb20ca4ca0b569d3efcbdb4f815f07d2e (diff) |
Prevent edits from unnecessarily re-exporting linked notes
Diffstat (limited to 'seam-test.el')
-rw-r--r-- | seam-test.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/seam-test.el b/seam-test.el index df9aab2..e7658dd 100644 --- a/seam-test.el +++ b/seam-test.el @@ -225,6 +225,20 @@ (mapcar #'seam-test-remove-testdir (seam-get-links-from-file (buffer-file-name foo))) (seam-test-list-files))))))) +(ert-deftest seam-test-link-update-no-unnecessary-export () + "Test that updating the contents of a note does not unnecessarily +re-export note to which it links." + (should-not + (member + "html/bar.html" + (seam-test-with-notes () + ((foo "foo" "public") + (bar "bar" "public")) + (seam-test-add-contents foo (seam-test-link-to-buffer bar)) + (delete-file "html/bar.html") + (seam-test-add-contents foo "hello") + (seam-test-list-files))))) + (ert-deftest seam-test-link-to-private () "Test that a private link does not get exported in HTML." (should-error |