From a5e7c7166f5d4baf4b6487f44865f2636cda4698 Mon Sep 17 00:00:00 2001 From: Stig Brautaset Date: Wed, 7 Jun 2017 23:03:26 +0100 Subject: Add support for TODOs and TAGs in headlines --- test/ox-jira-test.el | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test') diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 90716d5..d3f75ee 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -90,6 +90,27 @@ h3. third level ** second level *** third level")))) + +(ert-deftest ox-jira-test/todo-headlines () + (should + (equal "h1. {color:lightgreen}{{DONE}}{color} This is a headline +h1. {color:red}{{TODO}}{color} This is another headline +" (to-jira "* DONE This is a headline +* TODO This is another headline")))) + +(ert-deftest ox-jira-test/tag-headlines () + (should (equal "h1. This is a headline {color:blue}{{:TAG:XXX:}}{color} +h1. This is another headline {color:blue}{{:FOO:BAR:}}{color} +" (to-jira "* This is a headline :TAG:XXX: +* This is another headline :FOO:BAR:")))) + + +(ert-deftest ox-jira-test/full-headlines () + (should (equal "h1. {color:lightgreen}{{DONE}}{color} This is a headline {color:blue}{{:TAG:XXX:}}{color} +h1. {color:red}{{TODO}}{color} This is another headline {color:blue}{{:FOO:BAR:}}{color} +" (to-jira "* DONE This is a headline :TAG:XXX: +* TODO This is another headline :FOO:BAR:")))) + ;; As far as I understand these are not useful in JIRA output, so let's just ;; filter them out. ;; -- cgit v1.2.3