aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-11-27 10:02:04 +0100
committerStefan Kangas2022-11-27 10:03:56 +0100
commit8296164eab91fcb1ff0eb75390691665735419d2 (patch)
treec2f4c0e9a845a4a68ab9ad3b420b44b23338d57e
parenta6cbfdd8f154e2cc61da673f8e6d2ccda1fe7d7c (diff)
downloademacs-8296164eab91fcb1ff0eb75390691665735419d2.tar.gz
emacs-8296164eab91fcb1ff0eb75390691665735419d2.zip
Remove tests lacking a copyright assignment for now
* use-package-tests.el (use-package-test/pre-post-hooks-with-:config) (use-package-test/pre-post-hooks-without-:config): Remove tests.
-rw-r--r--test/lisp/use-package/use-package-tests.el31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el
index ac3dce2c021..b66b08ec117 100644
--- a/test/lisp/use-package/use-package-tests.el
+++ b/test/lisp/use-package/use-package-tests.el
@@ -1505,37 +1505,6 @@
1505 (config) 1505 (config)
1506 t)))))) 1506 t))))))
1507 1507
1508(ert-deftest use-package-test/pre-post-hooks-with-:config ()
1509 (let ((use-package-inject-hooks t))
1510 (match-expansion
1511 (use-package foo :config (config))
1512 `(progn
1513 (when
1514 (run-hook-with-args-until-failure 'use-package--foo--pre-init-hook)
1515 (run-hooks 'use-package--foo--post-init-hook))
1516 (require 'foo nil nil)
1517 (when
1518 (run-hook-with-args-until-failure 'use-package--foo--pre-config-hook)
1519 (config)
1520 (run-hooks 'use-package--foo--post-config-hook))
1521 t))))
1522
1523(ert-deftest use-package-test/pre-post-hooks-without-:config ()
1524 ;; https://github.com/jwiegley/use-package/issues/785
1525 (let ((use-package-inject-hooks t))
1526 (match-expansion
1527 (use-package foo)
1528 `(progn
1529 (when
1530 (run-hook-with-args-until-failure 'use-package--foo--pre-init-hook)
1531 (run-hooks 'use-package--foo--post-init-hook))
1532 (require 'foo nil nil)
1533 (when
1534 (run-hook-with-args-until-failure 'use-package--foo--pre-config-hook)
1535 t
1536 (run-hooks 'use-package--foo--post-config-hook))
1537 t))))
1538
1539(ert-deftest use-package-test-normalize/:diminish () 1508(ert-deftest use-package-test-normalize/:diminish ()
1540 (should (equal (use-package-normalize-diminish 'foopkg :diminish nil) 1509 (should (equal (use-package-normalize-diminish 'foopkg :diminish nil)
1541 '(foopkg-mode))) 1510 '(foopkg-mode)))