From 7e661196a239a29f995eb12073da440406facdd3 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Sun, 6 Apr 2025 22:24:22 -0400 Subject: Prevent edits from unnecessarily re-exporting linked notes --- seam-test.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'seam-test.el') 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 -- cgit v1.2.3