aboutsummaryrefslogtreecommitdiff
path: root/tests/test-integration-chime-mode.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-04 12:47:26 -0500
committerCraig Jennings <c@cjennings.net>2026-04-04 12:47:26 -0500
commit2103b2cd2823f340a9587ee1b2143c93b84fd536 (patch)
tree382a610b0ae6092ae03b1eb39a92cc1111f63a0d /tests/test-integration-chime-mode.el
parent5bfec2ff0d7df0aae73eacf46542ed27b9ea580f (diff)
downloadchime-2103b2cd2823f340a9587ee1b2143c93b84fd536.tar.gz
chime-2103b2cd2823f340a9587ee1b2143c93b84fd536.zip
Add integration test for chime-mode deactivation cleanup
Verifies disabling chime-mode removes chime-modeline-string from global-mode-string and sets it to nil.
Diffstat (limited to 'tests/test-integration-chime-mode.el')
-rw-r--r--tests/test-integration-chime-mode.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-integration-chime-mode.el b/tests/test-integration-chime-mode.el
index a9a37f9..b2ecafa 100644
--- a/tests/test-integration-chime-mode.el
+++ b/tests/test-integration-chime-mode.el
@@ -57,5 +57,15 @@
(should (memq 'chime-modeline-string global-mode-string)))
(chime-mode -1))))
+(ert-deftest test-integration-chime-mode-disable-removes-from-global-mode-string ()
+ "Disabling chime-mode should remove chime-modeline-string from global-mode-string
+and set it to nil."
+ (let ((chime-enable-modeline t)
+ (chime-modeline-lookahead-minutes 60))
+ (chime-mode 1)
+ (chime-mode -1)
+ (should-not (memq 'chime-modeline-string global-mode-string))
+ (should (null chime-modeline-string))))
+
(provide 'test-integration-chime-mode)
;;; test-integration-chime-mode.el ends here