aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-05-22 20:23:32 +0100
committerWilfred Hughes <me@wilfred.me.uk>2018-05-22 20:23:32 +0100
commit5d0796faa829aebe7b5f73054e0cfab16b4b0860 (patch)
treee5f5720f3cc2802e64390829ba58df7ae32da148 /test
parent8b60a24f330f42ccda8431e7683557455874a3c4 (diff)
Show preceding comments and autoload cookies in source0.10
Diffstat (limited to 'test')
-rw-r--r--test/unit-test.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit-test.el b/test/unit-test.el
index 910819d..9ccbdfd 100644
--- a/test/unit-test.el
+++ b/test/unit-test.el
@@ -473,6 +473,12 @@ associated a lambda with a keybinding."
(should
(s-starts-with-p "(defun " source))))
+(ert-deftest helpful--source-autoloaded ()
+ "We should include the autoload cookie."
+ (let* ((source (helpful--source #'helpful-at-point t)))
+ (should
+ (s-starts-with-p ";;;###autoload" source))))
+
(ert-deftest helpful--source--interactively-defined-fn ()
"We should return the raw sexp for functions where we can't
find the source code."