aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-export-config-task-default.el
blob: 850249c942e898409b1abaa4be3d0005db18a653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;;; test-org-export-config-task-default.el --- Org export task-default test -*- lexical-binding: t; -*-

;;; Commentary:
;; org-export-config.el used to set `org-export-with-tasks' twice in a row
;; ('("TODO") then nil), leaving the final behavior ("export no tasks")
;; contradicted by the adjacent comment.  Requiring the module then ox fires
;; the deferred :config in batch, so this test pins the single intended
;; default: tasks are not exported.

;;; Code:

(require 'ert)
(require 'org)
(require 'org-export-config)
(require 'ox)

(ert-deftest test-org-export-config-tasks-default-is-nil ()
  "Normal: after ox config loads, tasks are excluded from export by default."
  (should (null org-export-with-tasks)))

(provide 'test-org-export-config-task-default)
;;; test-org-export-config-task-default.el ends here