aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley2017-12-13 17:02:55 -0800
committerJohn Wiegley2017-12-13 17:02:55 -0800
commit31fa2f24a106f2e1fe433713c1e867d27788774e (patch)
tree6c5897f316be02ad2573715b4c62d9e24402ede2 /test
parent4aa9b0cd6a1b3b1479a803052c1cc02db1fbd0eb (diff)
downloademacs-31fa2f24a106f2e1fe433713c1e867d27788774e.tar.gz
emacs-31fa2f24a106f2e1fe433713c1e867d27788774e.zip
Add more tests related to issue
GitHub-reference: https://github.com/jwiegley/use-package/issues/572
Diffstat (limited to 'test')
-rw-r--r--test/lisp/use-package/use-package-tests.el25
1 files changed, 24 insertions, 1 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el
index 70654daa3ed..59a041789cb 100644
--- a/test/lisp/use-package/use-package-tests.el
+++ b/test/lisp/use-package/use-package-tests.el
@@ -1762,7 +1762,7 @@
1762 (when (symbol-value 'notmuch-command) 1762 (when (symbol-value 'notmuch-command)
1763 (require 'notmuch nil nil)))))))) 1763 (require 'notmuch nil nil))))))))
1764 1764
1765(ert-deftest use-package-test/572 () 1765(ert-deftest use-package-test/572-1 ()
1766 (let ((use-package-always-defer t)) 1766 (let ((use-package-always-defer t))
1767 (match-expansion 1767 (match-expansion
1768 (use-package auth-password-store 1768 (use-package auth-password-store
@@ -1772,6 +1772,29 @@
1772 `(eval-after-load 'auth-source 1772 `(eval-after-load 'auth-source
1773 '(setq auth-sources '(password-store)))))) 1773 '(setq auth-sources '(password-store))))))
1774 1774
1775(ert-deftest use-package-test/572-2 ()
1776 (let ((use-package-always-defer t))
1777 (match-expansion
1778 (use-package ivy-hydra :after ivy)
1779 `nil)))
1780
1781(ert-deftest use-package-test/572-3 ()
1782 (let ((use-package-always-defer t)
1783 (use-package-defaults
1784 (let ((defaults (copy-alist use-package-defaults)))
1785 (setcdr (assq :defer defaults)
1786 '(use-package-always-defer
1787 (lambda (name args)
1788 (and use-package-always-defer
1789 (not (plist-member args :after))
1790 (not (plist-member args :defer))
1791 (not (plist-member args :demand))))))
1792 defaults)))
1793 (match-expansion
1794 (use-package ivy-hydra :after ivy)
1795 `(eval-after-load 'ivy
1796 '(require 'ivy-hydra nil nil)))))
1797
1775(ert-deftest use-package-test/575-1 () 1798(ert-deftest use-package-test/575-1 ()
1776 (match-expansion 1799 (match-expansion
1777 (use-package helm 1800 (use-package helm