Browse Source

org-archive: Fix failing tests

* testing/lisp/test-org-archive.el (test-org-element/archive-update-status-cookie):
Fix failing tests.
Nicolas Goaziou 7 years ago
parent
commit
11979e298d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      testing/lisp/test-org-archive.el

+ 4 - 2
testing/lisp/test-org-archive.el

@@ -27,7 +27,8 @@
    (equal
     "Top [0%]"
     (org-test-with-temp-text-in-file
-	"* Top [%]\n<point>** DONE One\n** TODO Two"
+	"* Top [%]\n** DONE One\n** TODO Two"
+      (forward-line)
       (org-archive-subtree)
       (forward-line -1)
       (org-element-property :title (org-element-at-point)))))
@@ -35,7 +36,8 @@
   (should
    (equal
     "Top [100%]"
-    (org-test-with-temp-text-in-file "* Top [%]\n<point>** TODO Two"
+    (org-test-with-temp-text-in-file "* Top [%]\n** TODO Two"
+      (forward-line)
       (org-archive-subtree)
       (forward-line -1)
       (org-element-property :title (org-element-at-point)))))