]> git.notmuchmail.org Git - notmuch/blobdiff - test/emacs
emacs: Add `notmuch-jump-to-recent-buffer'.
[notmuch] / test / emacs
index a864ffa7a3856278154c3c8d393451b4a21ba96d..dffad0fc171a2fc93d1b1ffc58abe403a1cfe768 100755 (executable)
@@ -485,4 +485,14 @@ counter=$(test_emacs \
 )
 test_expect_equal "$counter" 1
 
+test_begin_subtest "notmuch-hello-mode hook is not called on updates"
+counter=$(test_emacs \
+    '(let ((notmuch-hello-mode-hook-counter 0))
+       (kill-buffer "*notmuch-hello*")
+       (notmuch-hello)
+       (notmuch-hello-update)
+       notmuch-hello-mode-hook-counter)'
+)
+test_expect_equal "$counter" 1
+
 test_done