Skip to content

Commit

Permalink
Fix tests for older org versions
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed Feb 15, 2024
1 parent 605a7eb commit 270a618
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/org-journal-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,9 @@
(scheduled-entry-time (org-journal--calendar-date->time scheduled-entry-date))
(new-entry-date (calendar-current-date (if (= day-offset 1) nil 1)))
(new-entry-time (org-journal--calendar-date->time new-entry-date))
;; TODO(cschwarzgruber): For PR #338
;; " "
;; org-scheduled-string
;; " "
(scheduled-string (concat "<" (format-time-string (car org-time-stamp-formats) scheduled-entry-time) ">")))
(scheduled-string (with-temp-buffer
(org-insert-time-stamp scheduled-entry-time)
(buffer-string))))
;; Add first scheduled entry
(org-journal-new-scheduled-entry nil scheduled-entry-time)
(insert "Task 1")
Expand Down

0 comments on commit 270a618

Please sign in to comment.