]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove tests lacking a copyright assignment for now
authorStefan Kangas <stefankangas@gmail.com>
Sun, 27 Nov 2022 09:02:04 +0000 (10:02 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 27 Nov 2022 09:03:56 +0000 (10:03 +0100)
* use-package-tests.el (use-package-test/pre-post-hooks-with-:config)
(use-package-test/pre-post-hooks-without-:config): Remove tests.

test/lisp/use-package/use-package-tests.el

index ac3dce2c021a9e0d0820fd3ab575ab47360dd813..b66b08ec11702bc70733eecc8a7d9c4d219870e9 100644 (file)
              (config)
              t))))))
 
-(ert-deftest use-package-test/pre-post-hooks-with-:config ()
-  (let ((use-package-inject-hooks t))
-    (match-expansion
-     (use-package foo :config (config))
-     `(progn
-       (when
-           (run-hook-with-args-until-failure 'use-package--foo--pre-init-hook)
-         (run-hooks 'use-package--foo--post-init-hook))
-       (require 'foo nil nil)
-       (when
-           (run-hook-with-args-until-failure 'use-package--foo--pre-config-hook)
-         (config)
-         (run-hooks 'use-package--foo--post-config-hook))
-       t))))
-
-(ert-deftest use-package-test/pre-post-hooks-without-:config ()
-  ;; https://github.com/jwiegley/use-package/issues/785
-  (let ((use-package-inject-hooks t))
-    (match-expansion
-     (use-package foo)
-     `(progn
-        (when
-            (run-hook-with-args-until-failure 'use-package--foo--pre-init-hook)
-          (run-hooks 'use-package--foo--post-init-hook))
-        (require 'foo nil nil)
-        (when
-            (run-hook-with-args-until-failure 'use-package--foo--pre-config-hook)
-          t
-          (run-hooks 'use-package--foo--post-config-hook))
-        t))))
-
 (ert-deftest use-package-test-normalize/:diminish ()
   (should (equal (use-package-normalize-diminish 'foopkg :diminish nil)
                  '(foopkg-mode)))