Browse Source

ox: Fix failing test

* testing/lisp/test-ox.el (test-org-export/footnotes): Fix test.
Nicolas Goaziou 10 years ago
parent
commit
0025a0b1c7
1 changed files with 3 additions and 4 deletions
  1. 3 4
      testing/lisp/test-ox.el

+ 3 - 4
testing/lisp/test-ox.el

@@ -1532,10 +1532,9 @@ Paragraph[fn:1]"
 		      (org-export-backend-transcoders backend)))
 		      (org-export-backend-transcoders backend)))
 	  (forward-line)
 	  (forward-line)
 	  (org-export-as backend 'subtree)))))
 	  (org-export-as backend 'subtree)))))
-    ;; 6. Footnotes without a definition should be provided a fallback
+    ;; 6. Footnotes without a definition should throw an error.
-    ;;    definition.
+    (should-error
-    (should
+     (org-test-with-parsed-data "Text[fn:1]"
-     (org-test-with-parsed-data "[fn:1]"
        (org-export-get-footnote-definition
        (org-export-get-footnote-definition
 	(org-element-map tree 'footnote-reference 'identity info t) info)))
 	(org-element-map tree 'footnote-reference 'identity info t) info)))
     ;; 7. Footnote section should be ignored in TOC and in headlines
     ;; 7. Footnote section should be ignored in TOC and in headlines