X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Femacs;h=ca8244531e3eb76780c97dcee8ba865c275829e3;hb=c44a0edadca995ddee4b159e9c465d40a32af6e4;hp=dffad0fc171a2fc93d1b1ffc58abe403a1cfe768;hpb=59adb2da193efef806b37e2c85981024a39ee2e3;p=notmuch diff --git a/test/emacs b/test/emacs index dffad0fc..ca824453 100755 --- a/test/emacs +++ b/test/emacs @@ -495,4 +495,23 @@ counter=$(test_emacs \ ) test_expect_equal "$counter" 1 +test_begin_subtest "notmuch-hello-refresh hook is called" +counter=$(test_emacs \ + '(let ((notmuch-hello-refresh-hook-counter 0)) + (kill-buffer "*notmuch-hello*") + (notmuch-hello) + notmuch-hello-refresh-hook-counter)' +) +test_expect_equal "$counter" 1 + +test_begin_subtest "notmuch-hello-refresh hook is called on updates" +counter=$(test_emacs \ + '(let ((notmuch-hello-refresh-hook-counter 0)) + (kill-buffer "*notmuch-hello*") + (notmuch-hello) + (notmuch-hello-update) + notmuch-hello-refresh-hook-counter)' +) +test_expect_equal "$counter" 2 + test_done