]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix failing help-fns tests after layout changes in `C-h b'
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 1 Nov 2021 02:29:07 +0000 (03:29 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 1 Nov 2021 02:29:07 +0000 (03:29 +0100)
test/lisp/help-fns-tests.el

index 513a0c2daea6dd3c86e90d58b9ed4bf0c1253573..24a42290a3f648d681859677264e156d40330057 100644 (file)
@@ -148,7 +148,7 @@ Return first line of the output of (describe-function-1 FUNC)."
 (ert-deftest help-fns-test-describe-keymap/value ()
   (describe-keymap minibuffer-local-must-match-map)
   (with-current-buffer "*Help*"
-    (should (looking-at "^key"))))
+    (should (looking-at "\nKey"))))
 
 (ert-deftest help-fns-test-describe-keymap/not-keymap ()
   (should-error (describe-keymap nil))
@@ -158,7 +158,7 @@ Return first line of the output of (describe-function-1 FUNC)."
   (let ((foobar minibuffer-local-must-match-map))
     (describe-keymap foobar)
     (with-current-buffer "*Help*"
-      (should (looking-at "^key")))))
+      (should (looking-at "\nKey")))))
 
 (ert-deftest help-fns-test-describe-keymap/dynamically-bound-no-file ()
   (setq help-fns-test--describe-keymap-foo minibuffer-local-must-match-map)