branch: elpa/toc-org
commit 356b3fbb893a9aed5de7adfb3ad770b9c6410408
Author: Sergei Nosov <[email protected]>
Commit: Sergei Nosov <[email protected]>

    Define fake markdown mode in tests
---
 toc-org-test.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/toc-org-test.el b/toc-org-test.el
index 16a0601c49..0895911890 100644
--- a/toc-org-test.el
+++ b/toc-org-test.el
@@ -245,6 +245,8 @@
 (ert-deftest test-toc-org-insert-toc-markdown ()
   "Test the `toc-org-insert-toc' function"
 
+  (define-derived-mode markdown-mode text-mode "Markdown")
+
   (defun test-toc-org-insert-toc-gold-test-markdown (content gold)
     (with-temp-buffer
       (markdown-mode)

Reply via email to