aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-signal-config.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-signal-config.el b/tests/test-signal-config.el
index 3be63362..7556efdb 100644
--- a/tests/test-signal-config.el
+++ b/tests/test-signal-config.el
@@ -368,6 +368,16 @@ commands the workflow spec names."
(should (eq (keymap-lookup cj/signel-prefix-map "SPC")
#'cj/signel-connect)))
+(ert-deftest test-signal-config-prefix-map-registered-under-c-semi-m ()
+ "Normal: loading signal-config registers `cj/signel-prefix-map' under
+`M' in `cj/custom-keymap', so C-; M reaches the signel prefix. Guards
+the wiring contract that the load-order bug broke: signal-config must
+register through `cj/register-prefix-map', not a boundp-guarded direct
+mutation that silently no-ops when keybindings loaded in a different
+order."
+ (require 'keybindings)
+ (should (eq (keymap-lookup cj/custom-keymap "M") cj/signel-prefix-map)))
+
;;; display-buffer-alist entry for *Signel: ...* chat buffers
(ert-deftest test-signal-config-chat-buffer-display-rule-uses-bottom-30 ()