aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-mapping.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-pearl-mapping.el')
-rw-r--r--tests/test-pearl-mapping.el20
1 files changed, 4 insertions, 16 deletions
diff --git a/tests/test-pearl-mapping.el b/tests/test-pearl-mapping.el
index 17eff82..2a96163 100644
--- a/tests/test-pearl-mapping.el
+++ b/tests/test-pearl-mapping.el
@@ -54,22 +54,10 @@
(test-pearl--with-mapping '(("Todo" . "TODO"))
(should (string-equal "TODO" (pearl--map-linear-state-to-org nil)))))
-;;; pearl--map-org-state-to-linear
-
-(ert-deftest test-pearl-map-org-state-to-linear-mapped-returns-state ()
- "An org keyword present in the mapping returns its Linear state."
- (test-pearl--with-mapping '(("Todo" . "TODO") ("In Progress" . "DOING"))
- (should (string-equal "In Progress" (pearl--map-org-state-to-linear "DOING")))))
-
-(ert-deftest test-pearl-map-org-state-to-linear-unmapped-returns-nil ()
- "An org keyword not in the mapping returns nil."
- (test-pearl--with-mapping '(("Todo" . "TODO") ("Done" . "DONE"))
- (should (null (pearl--map-org-state-to-linear "WAITING")))))
-
-(ert-deftest test-pearl-map-org-state-to-linear-nil-returns-nil ()
- "A nil org keyword returns nil."
- (test-pearl--with-mapping '(("Todo" . "TODO"))
- (should (null (pearl--map-org-state-to-linear nil)))))
+;; pearl--map-org-state-to-linear (the keyword->state reverse map) was removed
+;; with the org-sync push path in save-model-v2; the keyword-cycle save will
+;; resolve through the team's states (the keyword-derivation task), not a flat
+;; reverse mapping.
;;; pearl--get-todo-states-pattern