aboutsummaryrefslogtreecommitdiff
path: root/test/helpful-unit-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/helpful-unit-test.el')
-rw-r--r--test/helpful-unit-test.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el
index 0e660bb..b2653e4 100644
--- a/test/helpful-unit-test.el
+++ b/test/helpful-unit-test.el
@@ -75,6 +75,17 @@
(should
(string-equal formatted-docstring "M-n"))))
+(ert-deftest helpful--docstring-keymap-newline ()
+ "If a keymap reference is on its own line, remove the entire line."
+ (should
+ (string-equal
+ (helpful--format-docstring "Foo.
+\\<minibuffer-local-map>
+bar")
+ "Foo.
+
+bar")))
+
(ert-deftest helpful--docstring-advice ()
"Get the docstring on advised functions."
(should