Merge pull request from conao3/add-custom-face-description

GitHub-reference: https://github.com/jwiegley/use-package/issues/863
This commit is contained in:
John Wiegley 2022-08-07 08:48:29 -07:00 committed by GitHub
commit 0503611b71

View file

@ -1165,6 +1165,19 @@
(custom-set-faces (backquote (foo ((t (:background "#e4edfc"))))))
(require 'foo nil nil))))
(ert-deftest use-package-test/:custom-face-2 ()
(match-expansion
(use-package example
:custom-face
(example-1-face ((t (:foreground "LightPink"))))
(example-2-face ((t (:foreground "LightGreen")))))
`(progn
(custom-set-faces
(backquote (example-1-face ((t (:foreground "LightPink"))))))
(custom-set-faces
(backquote (example-2-face ((t (:foreground "LightGreen"))))))
(require 'example nil nil))))
(ert-deftest use-package-test/:init-1 ()
(match-expansion
(use-package foo :init (init))