diff options
author | Dmitry Kurochkin <dmitry.kurochkin@gmail.com> | 2011-12-18 04:21:19 +0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-20 07:42:00 -0400 |
commit | 785028dc2e6bc165456d3c91c1ce3693e6a4cf05 (patch) | |
tree | 20e22682d4aeebd257a215f48f3af596a391b186 /test | |
parent | 33735c28a42d8b4a5432507430aa0000bc9d4ada (diff) |
test: add test for `notmuch-hello-mode-hook'
Test that `notmuch-hello-mode-hook' is called once when
`notmuch-hello' function is called.
Diffstat (limited to 'test')
-rwxr-xr-x | test/emacs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -476,4 +476,13 @@ test_emacs "(let ((notmuch-command \"$notmuch_counter_command\")) (notmuch-show \"id:$id\"))" test_expect_equal $(notmuch_counter_value) 1 +test_begin_subtest "notmuch-hello-mode hook is called" +counter=$(test_emacs \ + '(let ((notmuch-hello-mode-hook-counter 0)) + (kill-buffer "*notmuch-hello*") + (notmuch-hello) + notmuch-hello-mode-hook-counter)' +) +test_expect_equal "$counter" 1 + test_done |