branch: master
commit 6470c5faa3850de00bfb4beea40f1e85bce78762
Author: Ian D <du...@gnu.org>
Commit: Ian D <du...@gnu.org>

    Added test for todo action
---
 org-edna-tests.el | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/org-edna-tests.el b/org-edna-tests.el
index 3444096..d304c2a 100644
--- a/org-edna-tests.el
+++ b/org-edna-tests.el
@@ -132,6 +132,24 @@
     (should (string-equal (substring-no-properties org-block-entry-blocking)
                           "TODO Tagged Heading 1 :1:test:"))))
 
+
+;; Actions
+
+(ert-deftest org-edna-action/todo-test ()
+  (let* ((org-agenda-files `(,org-edna-test-file))
+         (target (org-id-find "0d491588-7da3-43c5-b51a-87fbd34f79f7" t)))
+    (org-with-point-at target
+      (org-edna-action/todo nil "DONE")
+      (should (string-equal (org-entry-get nil "TODO") "DONE"))
+      (org-edna-action/todo nil "TODO")
+      (should (string-equal (org-entry-get nil "TODO") "TODO")))))
+
+
+;; Conditions
+
+
+;; Consideration
+
 (provide 'org-edna-tests)
 
 ;;; org-edna-tests.el ends here

Reply via email to