From 2103b2cd2823f340a9587ee1b2143c93b84fd536 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 4 Apr 2026 12:47:26 -0500 Subject: 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. --- tests/test-integration-chime-mode.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3