diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 07:45:56 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 07:45:56 -0500 |
| commit | bd2aa5705d94b7d403096c62637e64c479ea0de5 (patch) | |
| tree | e207aa2b99c0b11635b2bc34ead5da269e03015f /tests/test-pearl-save.el | |
| parent | 808ca1183c5288183fd3be2607887e21ae6e9c68 (diff) | |
| download | pearl-bd2aa5705d94b7d403096c62637e64c479ea0de5.tar.gz pearl-bd2aa5705d94b7d403096c62637e64c479ea0de5.zip | |
refactor: rename pearl--issue-body-at-point to pearl--entry-body-at-point
The helper returns the body of the Org entry at point, before any child heading. It started out reading issue descriptions, but comment editing and deletion reuse it for comment bodies too, so "issue" in the name was misleading. I renamed it across its callers and the sync/refresh/save/comment tests, and reworded the docstring to say "entry".
Diffstat (limited to 'tests/test-pearl-save.el')
| -rw-r--r-- | tests/test-pearl-save.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-pearl-save.el b/tests/test-pearl-save.el index 802535b..a8ae6af 100644 --- a/tests/test-pearl-save.el +++ b/tests/test-pearl-save.el @@ -247,9 +247,9 @@ so the next local dirty scan (which uses the Org hash) sees the ticket as clean. (pearl--save-description-field marker (lambda (o) (setq outcome o)))) (should (eq 'pushed (plist-get outcome :status))) (org-with-point-at marker - (should (string= (secure-hash 'sha256 (pearl--issue-body-at-point)) + (should (string= (secure-hash 'sha256 (pearl--entry-body-at-point)) (org-entry-get nil "LINEAR-DESC-ORG-SHA256"))) - (should (string= (secure-hash 'sha256 (pearl--org-to-md (pearl--issue-body-at-point))) + (should (string= (secure-hash 'sha256 (pearl--org-to-md (pearl--entry-body-at-point))) (org-entry-get nil "LINEAR-DESC-SHA256"))) ;; the push timestamp still lands via the after-push bookkeeping (should (string= "t1" (org-entry-get nil "LINEAR-DESC-UPDATED-AT"))))))) |
