mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
test: add test for `notmuch-hello-mode-hook'
Test that `notmuch-hello-mode-hook' is called once when `notmuch-hello' function is called.
This commit is contained in:
parent
33735c28a4
commit
785028dc2e
1 changed files with 9 additions and 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
|
||||
|
|
Loading…
Reference in a new issue