aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-06-18 23:27:17 +0100
committerWilfred Hughes <me@wilfred.me.uk>2018-06-18 23:27:17 +0100
commit1a3779f25a70d368d0b22c9218d7b4189867909d (patch)
tree2a3ed319b04dd3a2a1be4b9e36ebf4d400044906 /test
parentd4b316d0af522098d97128fcc4ea9f79d64eb339 (diff)
Handle references to non-existent keymaps in docstrings
Fixes #110.
Diffstat (limited to 'test')
-rw-r--r--test/unit-test.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit-test.el b/test/unit-test.el
index 95539be..c1c1cfd 100644
--- a/test/unit-test.el
+++ b/test/unit-test.el
@@ -210,7 +210,11 @@ symbol (not a form)."
;; Propertize mode maps.
(-let [formatted (helpful--format-docstring "`\\{python-mode-map}'")]
(should
- (s-contains-p "run-python" formatted))))
+ (s-contains-p "run-python" formatted)))
+ ;; Handle non-existent mode maps gracefully.
+ (-let [formatted (helpful--format-docstring "`\\{no-such-mode-map}'")]
+ (should
+ (s-contains-p "not currently defined" formatted))))
(ert-deftest helpful--format-docstring--info ()
"Ensure we propertize references to the info manual."