mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add core-lib remove-hook-forms test
This commit is contained in:
@ -41,6 +41,13 @@
|
|||||||
(should (null hooks-b))
|
(should (null hooks-b))
|
||||||
(should (null hooks-c))))
|
(should (null hooks-c))))
|
||||||
|
|
||||||
|
(ert-deftest remove-hook-forms ()
|
||||||
|
(let (hooks)
|
||||||
|
(add-hook! 'hooks (message "Hello world"))
|
||||||
|
(should hooks)
|
||||||
|
(remove-hook! 'hooks (message "Hello world"))
|
||||||
|
(should (null hooks))))
|
||||||
|
|
||||||
;; `add-transient-hook!'
|
;; `add-transient-hook!'
|
||||||
(ert-deftest transient-hooks ()
|
(ert-deftest transient-hooks ()
|
||||||
(let (hooks value)
|
(let (hooks value)
|
||||||
|
Reference in New Issue
Block a user